Documentation ¶
Index ¶
- Variables
- func Debug(message string)
- func Debugf(message string, a ...interface{})
- func Log(a ...interface{})
- func LogStack()
- func Logf(message string, a ...interface{})
- func SetLogLevel(level LogLevel)
- func SetLogWriter(writer io.Writer)
- func SetProcess(process string)
- func ShouldLog(messageLogLevel LogLevel, writerLogLevel LogLevel) bool
- type LogLevel
- type LogLine
- type LogWriter
- type Logger
- func (l *Logger) AddLogWriter(writer LogWriter) *Logger
- func (l *Logger) Debug(message string, a ...interface{})
- func (l *Logger) Log(message string, a ...interface{})
- func (l *Logger) SetDebugLogLevel() *Logger
- func (l *Logger) SetDefaultLogLevel() *Logger
- func (l *Logger) SetLogWriter(writer LogWriter) *Logger
- func (l *Logger) SetTraceLogLevel() *Logger
- func (l *Logger) Trace(message string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
Order of log level. If log level is >= the current log level it will be outputted. e.g. - If current log level set to trace, a message marked as default WILL be outputted - If current log level set to default, a message marked as trace WILL NOT be outputted
Functions ¶
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
func SetLogWriter ¶
func SetProcess ¶
func SetProcess(process string)
Types ¶
type Logger ¶
type Logger struct { LogLines []LogLine // contains filtered or unexported fields }
func (*Logger) AddLogWriter ¶
func (*Logger) SetDebugLogLevel ¶
func (*Logger) SetDefaultLogLevel ¶
func (*Logger) SetLogWriter ¶
func (*Logger) SetTraceLogLevel ¶
Click to show internal directories.
Click to hide internal directories.