# README
Log
This is the global logger for all micro based libraries which makes use of github.com/go-log/log.
It defaults the logger to the stdlib log implementation.
Set Logger
Set the logger for micro libraries
// import go-micro/util/log
import "github.com/micro/go-micro/util/log"
// SetLogger expects github.com/go-log/log.Logger interface
log.SetLogger(mylogger)
# Functions
Debug provides debug level logging.
Debugf provides debug level logging.
Fatal logs with Log and then exits with os.Exit(1).
Fatalf logs with Logf and then exits with os.Exit(1).
GetLevel returns the current level.
GetLogger returns the local logger.
Info provides info level logging.
Infof provides info level logging.
Log makes use of github.com/go-log/log.Log.
Logf makes use of github.com/go-log/log.Logf.
SetLevel sets the log level.
SetLogger sets the local logger.
Trace provides trace level logging.
Tracef provides trace level logging.
WithLevel logs with the level specified.
WithLevel logs with the level specified.
# Type aliases
level is a log level.