The highest tagged major version is
v3.
package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Jun 3, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1,027
Opens a new window with list of known importers.
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)
Documentation
¶
Package log is a global internal logger
func Fatal(v ...interface{})
Fatal logs with Log and then exits with os.Exit(1)
func Fatalf(format string, v ...interface{})
Fatalf logs with Logf and then exits with os.Exit(1)
func Log(v ...interface{})
Log makes use of github.com/go-log/log.Log
func Logf(format string, v ...interface{})
Logf makes use of github.com/go-log/log.Logf
SetLogger sets the local logger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.