Documentation ¶
Index ¶
- func NewContext(ctx context.Context, xl *Logger) context.Context
- type Logger
- func (l *Logger) AppendPrefix(prefix string) *Logger
- func (l *Logger) Debug(format string, v ...interface{})
- func (l *Logger) Error(format string, v ...interface{})
- func (l *Logger) Info(format string, v ...interface{})
- func (l *Logger) ResetPrefixes() (old []string)
- func (l *Logger) Spawn() *Logger
- func (l *Logger) Trace(format string, v ...interface{})
- func (l *Logger) Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is not thread safety for operations on prefix
func FromContextSafe ¶
func (*Logger) AppendPrefix ¶
func (*Logger) ResetPrefixes ¶
Click to show internal directories.
Click to hide internal directories.