package
2.9.1
Repository: https://github.com/micro/go-micro.git
Documentation: pkg.go.dev

# README

Log

DEPRECATED: use github.com/micro/go-micro/v2/logger interface

This is the global logger for all micro based libraries.

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/micro/go-micro/debug/log.Log interface
log.SetLogger(mylogger)

# Functions

Debug provides debug level logging.
Debugf provides debug level logging.
Error provides warn level logging.
Errorf provides warn 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/micro/debug/log.
Logf makes use of github.com/micro/debug/log.
Set service name.
SetLevel sets the log level.
SetLogger sets the local logger.
Set a prefix for the logger.
Trace provides trace level logging.
Tracef provides trace level logging.
Warn provides warn level logging.
Warnf provides warn level logging.
WithLevel logs with the level specified.
WithLevel logs with the level specified.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

level is a log level.