-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flogging.MustGetLogger("chaincode") #24
Comments
"github.com/op/go-logging" // MustGetLogger is used in place of |
// MustGetLogger is like GetLogger but panics if the logger can't be created. |
func (l *Logger) log(lvl Level, format *string, args ...interface{}) {
} // Fatal is equivalent to l.Critical(fmt.Sprint()) followed by a call to os.Exit(1). // Fatalf is equivalent to l.Critical followed by a call to os.Exit(1). // Panic is equivalent to l.Critical(fmt.Sprint()) followed by a call to panic(). // Panicf is equivalent to l.Critical followed by a call to panic(). // Critical logs a message using CRITICAL as log level. // Criticalf logs a message using CRITICAL as log level. // Error logs a message using ERROR as log level. // Errorf logs a message using ERROR as log level. // Warning logs a message using WARNING as log level. // Warningf logs a message using WARNING as log level. // Notice logs a message using NOTICE as log level. // Noticef logs a message using NOTICE as log level. // Info logs a message using INFO as log level. // Infof logs a message using INFO as log level. // Debug logs a message using DEBUG as log level. // Debugf logs a message using DEBUG as log level. func init() { |
// Log implements the Backend interface.
func (b *LogBackend) Log(level Level, calldepth int, rec *Record) error {
// debug.PrintStack()
if b.Color {
col := colors[level]
if len(b.ColorConfig) > int(level) && b.ColorConfig[level] != "" {
col = b.ColorConfig[level]
}
}
The text was updated successfully, but these errors were encountered: