stdlogger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdLogger

type StdLogger struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func DefaultLogger

func DefaultLogger() (l *StdLogger)

DefaultLogger uses Golang Standard Logging Libary

func (*StdLogger) Debug

func (l *StdLogger) Debug(message string, params ...interface{})

func (*StdLogger) Error

func (l *StdLogger) Error(message string, params ...interface{})

func (*StdLogger) Fatal

func (l *StdLogger) Fatal(message string, params ...interface{})

func (*StdLogger) GetLevel

func (l *StdLogger) GetLevel() logadapter.Log_Level

func (*StdLogger) GetPrefix

func (l *StdLogger) GetPrefix() string

func (*StdLogger) Info

func (l *StdLogger) Info(message string, params ...interface{})

func (*StdLogger) New

func (l *StdLogger) New(name string) logadapter.Logger

func (*StdLogger) Panic

func (l *StdLogger) Panic(message string, params ...interface{})

func (*StdLogger) SetLevel

func (l *StdLogger) SetLevel(level logadapter.Log_Level)

func (*StdLogger) SetPrefix

func (l *StdLogger) SetPrefix(name string)

func (*StdLogger) Sync

func (l *StdLogger) Sync()

func (*StdLogger) Trace

func (l *StdLogger) Trace(message string, params ...interface{})

func (*StdLogger) Warn

func (l *StdLogger) Warn(message string, params ...interface{})

func (*StdLogger) With

func (l *StdLogger) With(key string, value interface{}) logadapter.Logger

Jump to

Keyboard shortcuts

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