Documentation
¶
Index ¶
- func CreateDirectoryIfNotExists(dir string)
- func TerminalFormat(r *Record) string
- type Ctx
- type Logger
- func (l *Logger) Crit(msg string, ctx ...interface{})
- func (l *Logger) Debug(msg string, ctx ...interface{})
- func (l *Logger) Error(msg string, ctx ...interface{})
- func (l *Logger) Info(msg string, ctx ...interface{})
- func (l *Logger) Trace(msg string, ctx ...interface{})
- func (l *Logger) Warn(msg string, ctx ...interface{})
- type LoggerInterface
- type Record
- type RecordKeyNames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectoryIfNotExists ¶
func CreateDirectoryIfNotExists(dir string)
func TerminalFormat ¶
Types ¶
type LoggerInterface ¶
type Record ¶
type Record struct { Time time.Time //Lvl Lvl Msg string Ctx []interface{} //Call stack.Call KeyNames RecordKeyNames }
A Record is what a LoggerInterface asks its handler to write
type RecordKeyNames ¶
Click to show internal directories.
Click to hide internal directories.