Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel 1 = DEBUG, 2 = INFO, 3 = WARN, 4 = ERROR, 5 = OFF, 6 = PANIC, 7 = FATAL
func ParseLevel ¶
func (LogLevel) EchoLogLevel ¶
func (LogLevel) LogRushString ¶
type Manager ¶
type Manager interface { Trace(messages ...interface{}) TraceWithProps(props map[string]interface{}, messages ...interface{}) Debug(messages ...interface{}) DebugWhen(expr bool, f func(debug func(messages ...interface{}))) DebugWithProps(props map[string]interface{}, messages ...interface{}) Info(messages ...interface{}) InfoWhen(expr bool, f func(info func(messages ...interface{}))) InfoWithProps(props map[string]interface{}, messages ...interface{}) InfoWithPropsWhen(expr bool, props map[string]interface{}, messages ...interface{}) Warn(messages ...interface{}) WarnWhen(expr bool, f func(warn func(messages ...interface{}))) WarnWithProps(props map[string]interface{}, messages ...interface{}) WarnWithPropsWhen(expr bool, props map[string]interface{}, messages ...interface{}) WhenError(err error) WhenErrorWithProps(err error, props map[string]interface{}) Error(messages ...interface{}) ErrorWhen(expr bool, f func(e func(messages ...interface{}))) ErrorWithProps(props map[string]interface{}, messages ...interface{}) ErrorWithPropsWhen(expr bool, props map[string]interface{}, f func(messages func(args ...interface{}))) Fatal(messages ...interface{}) FatalWithProps(props map[string]interface{}, messages ...interface{}) Panic(messages ...interface{}) PanicWithProps(props map[string]interface{}, messages ...interface{}) }
func NewMockLogger ¶
func NewMockLogger() Manager
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithServiceName ¶
func WithTZTimeFormatter ¶
Click to show internal directories.
Click to hide internal directories.