package logimport ()// Fatal calls the default logger's Fatal method and then os.Exit(1).func ( ...interface{}) {logger.Fatal(...)}// Error calls the default logger's Error method.func ( ...interface{}) {logger.Error(...)}// Warn calls the default logger's Warn method.func ( ...interface{}) {logger.Warn(...)}// Info calls the default logger's Info method.func ( ...interface{}) {logger.Info(...)}// Debug calls the default logger's Debug method.func ( ...interface{}) {logger.Debug(...)}// Trace calls the default logger's Trace method.func ( ...interface{}) {logger.Trace(...)}// Panic calls the default logger's Panic method.func ( ...interface{}) {logger.Panic(...)}// Fatalf calls the default logger's Fatalf method and then os.Exit(1).func ( string, ...interface{}) {logger.Fatalf(, ...)}// Errorf calls the default logger's Errorf method.func ( string, ...interface{}) {logger.Errorf(, ...)}// Warnf calls the default logger's Warnf method.func ( string, ...interface{}) {logger.Warnf(, ...)}// Infof calls the default logger's Infof method.func ( string, ...interface{}) {logger.Infof(, ...)}// Debugf calls the default logger's Debugf method.func ( string, ...interface{}) {logger.Debugf(, ...)}// Tracef calls the default logger's Tracef method.func ( string, ...interface{}) {logger.Tracef(, ...)}// Panicf calls the default logger's Tracef method.func ( string, ...interface{}) {logger.Panicf(, ...)}// Tracew logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Tracew(, ...)}// Debugw logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Debugw(, ...)}// Infow logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Infow(, ...)}// Warnw logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Warnw(, ...)}// Errorw logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Errorw(, ...)}// Fatalw logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Fatalw(, ...)}// Panicw logs a message with some additional context. The variadic key-value// pairs are treated as they are privateLog With.func ( string, ...interface{}) {logger.Panicw(, ...)}func ( context.Context) CommonLogger {returnlogger.WithContext()}// SetLogger sets the default logger and the system logger.// Note that this method is not concurrent-safe and must not be called// after the use of DefaultLogger and global functions privateLog this package.func ( AllLogger) {logger = }// SetOutput sets the output of default logger and system logger. By default, it is stderr.func ( io.Writer) {logger.SetOutput()}// SetLevel sets the level of logs below which logs will not be output.// The default logger is LevelTrace.// Note that this method is not concurrent-safe.func ( Level) {logger.SetLevel()}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.