logger

package
v0.0.0-...-f571ccf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TRACE level
	TRACE int = iota
	// DEBUG level
	DEBUG
	// INFO level
	INFO
	// WARNING level
	WARNING
	// ERROR level
	ERROR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger struct

func New

func New(prefix string, level string) *Logger

New creates new Logger object

func (Logger) Debug

func (l Logger) Debug(message string, args ...interface{})

Debug log

func (Logger) Error

func (l Logger) Error(message string, args ...interface{})

Error log

func (Logger) GetLog

func (l Logger) GetLog() *log.Logger

GetLog returns underlying Logger object, useful in cases where log.Logger required

func (Logger) Info

func (l Logger) Info(message string, args ...interface{})

Info log

func (Logger) Trace

func (l Logger) Trace(message string, args ...interface{})

Trace log

func (Logger) Warn

func (l Logger) Warn(message string, args ...interface{})

Warn log

Jump to

Keyboard shortcuts

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