Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = iota LevelInfo LevelWarn LevelError )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CombinedWriter ¶
type CombinedWriter struct {
// contains filtered or unexported fields
}
func NewCombinedWriter ¶
func NewCombinedWriter(loggers []LogWriter) CombinedWriter
func (CombinedWriter) GetLevel ¶
func (c CombinedWriter) GetLevel() int
func (CombinedWriter) Write ¶
func (c CombinedWriter) Write(msg string, level int)
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
func NewFileWriter ¶
func NewFileWriter(level int, path string) FileWriter
func (FileWriter) GetLevel ¶
func (f FileWriter) GetLevel() int
func (FileWriter) Write ¶
func (f FileWriter) Write(msg string, level int)
type LogWriter ¶
func DefaultDebugWriter ¶
func DefaultDebugWriter() LogWriter
func DefaultProdWriter ¶
func DefaultProdWriter() LogWriter
type TerminalWriter ¶
type TerminalWriter struct {
// contains filtered or unexported fields
}
func NewTerminalWriter ¶
func NewTerminalWriter(level int) TerminalWriter
func (TerminalWriter) GetLevel ¶
func (t TerminalWriter) GetLevel() int
func (TerminalWriter) Write ¶
func (t TerminalWriter) Write(msg string, level int)
Click to show internal directories.
Click to hide internal directories.