log

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
	// contains filtered or unexported fields
}

DefaultLogger is an implementation of channelize log.Logger interface on top of the built-in log.Logger. It is used if logger is not specified.

func NewDefaultLogger

func NewDefaultLogger() *DefaultLogger

NewDefaultLogger creates new instance of

func (*DefaultLogger) Debug

func (l *DefaultLogger) Debug(msg string, keyValues ...interface{})

Debug writes message to the log with debug level.

func (*DefaultLogger) Error

func (l *DefaultLogger) Error(msg string, keyValues ...interface{})

Error writes message to the log with error level.

func (*DefaultLogger) Info

func (l *DefaultLogger) Info(msg string, keyValues ...interface{})

Info writes message to the log with info level.

func (*DefaultLogger) Warn

func (l *DefaultLogger) Warn(msg string, keyValues ...interface{})

Warn writes message to the log with warn level.

type Level

type Level string

Level is an alias type of string that represents the log level.

const (
	Info  Level = "INFO"
	Error Level = "ERROR"
	Warn  Level = "WARN"
	Debug Level = "DEBUG"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL