Documentation ¶
Index ¶
- Constants
- func ConfigWithRawConfig(rawConfig *common.Config) (core.Core, error)
- func DPanic(args ...interface{})
- func DPanicf(format string, args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func GetLogger(name ...string) core.Logger
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func InitWithConfigContent(content string) error
- func InitWithConfigFile(path string) error
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Sync()
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- func With(keysAndValues ...interface{}) core.Logger
- func WithLogger(l core.Logger, args ...interface{}) core.Logger
Constants ¶
const DefaultConfig = `` /* 225-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ConfigWithRawConfig ¶ added in v0.2.3
func DPanic ¶ added in v0.2.3
func DPanic(args ...interface{})
DPanic uses fmt.Sprint to construct and log a message. In development, the logger then panics.
func DPanicf ¶ added in v0.2.3
func DPanicf(format string, args ...interface{})
DPanicf uses fmt.Sprintf to log a templated message. In development, the logger then panics.
func DPanicw ¶ added in v0.2.3
func DPanicw(msg string, keysAndValues ...interface{})
DPanicw logs a message with some additional context. The logger panics only in Development mode. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func Debugf ¶ added in v0.2.3
func Debugf(format string, args ...interface{})
Debugf uses fmt.Sprintf to construct and log a message.
func Debugw ¶ added in v0.2.3
func Debugw(msg string, keysAndValues ...interface{})
Debugw logs a message with some additional context. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func Error ¶ added in v0.2.3
func Error(args ...interface{})
Error uses fmt.Sprint to construct and log a message.
func Errorf ¶ added in v0.2.3
func Errorf(format string, args ...interface{})
Errorf uses fmt.Sprintf to log a templated message.
func Errorw ¶ added in v0.2.3
func Errorw(msg string, keysAndValues ...interface{})
Errorw logs a message with some additional context. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func Fatal ¶ added in v0.2.3
func Fatal(args ...interface{})
Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit(1).
func Fatalf ¶ added in v0.2.3
func Fatalf(format string, args ...interface{})
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit(1).
func Fatalw ¶ added in v0.2.3
func Fatalw(msg string, keysAndValues ...interface{})
Fatalw logs a message with some additional context, then calls os.Exit(1). The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func Info ¶ added in v0.2.3
func Info(args ...interface{})
Info uses fmt.Sprint to construct and log a message.
func Infof ¶ added in v0.2.3
func Infof(format string, args ...interface{})
Infof uses fmt.Sprintf to log a templated message.
func Infow ¶ added in v0.2.3
func Infow(msg string, keysAndValues ...interface{})
Infow logs a message with some additional context. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func InitWithConfigContent ¶ added in v0.2.3
func InitWithConfigFile ¶ added in v0.2.3
func Panic ¶ added in v0.2.3
func Panic(args ...interface{})
Panic uses fmt.Sprint to construct and log a message, then panics.
func Panicf ¶ added in v0.2.3
func Panicf(format string, args ...interface{})
Panicf uses fmt.Sprintf to log a templated message, then panics.
func Panicw ¶ added in v0.2.3
func Panicw(msg string, keysAndValues ...interface{})
Panicw logs a message with some additional context, then panics. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
func Warn ¶ added in v0.2.3
func Warn(args ...interface{})
Warn uses fmt.Sprint to construct and log a message.
func Warnf ¶ added in v0.2.3
func Warnf(format string, args ...interface{})
Warnf uses fmt.Sprintf to log a templated message.
func Warnw ¶ added in v0.2.3
func Warnw(msg string, keysAndValues ...interface{})
Warnw logs a message with some additional context. The additional context is added in the form of key-value pairs. The optimal way to write the value to the log message will be inferred by the value's type. To explicitly specify a type you can pass a Field such as logp.Stringer.
Types ¶
This section is empty.