Documentation
¶
Index ¶
- type Logger
- func (o *Logger) Debugf(level int, format string, v ...interface{})
- func (o *Logger) Debugln(level int, v ...interface{})
- func (o *Logger) Fatal(v ...interface{})
- func (o *Logger) Fatalf(format string, v ...interface{})
- func (o *Logger) Fatalln(v ...interface{})
- func (o *Logger) Printf(format string, v ...interface{})
- func (o *Logger) Println(v ...interface{})
- func (o *Logger) SetDebugLevel(n int)
- func (o *Logger) SetMirrorOutput(output io.Writer)
- func (o *Logger) SetOutputs(outputs []io.Writer)
- func (o *Logger) SetVerboseLevel(n int)
- func (o *Logger) Verbosef(level int, format string, v ...interface{})
- func (o *Logger) Verboseln(level int, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logger object
func (*Logger) Debugf ¶
Debugf uses the formatting string and variables to print a message to the output streams if the current debugging level is greater than or equal to the specified debugging level.
func (*Logger) Debugln ¶
Debugln prints the message to the output streams, followed by a newline, if the current debugging level is greater than or equal the specified debugging level.
func (*Logger) Fatal ¶
func (o *Logger) Fatal(v ...interface{})
Fatal is a convenience alias for Fatalln.
func (*Logger) Fatalf ¶
Fatalf prints a formatted message to the output streams and calls os.Exit(1).
func (*Logger) Fatalln ¶
func (o *Logger) Fatalln(v ...interface{})
Fatalln prints the message to the output streams followed by a newline and calls os.Exit(1).
func (*Logger) Printf ¶
Printf uses the formatting string and variables to print a message to the output streams.
func (*Logger) Println ¶
func (o *Logger) Println(v ...interface{})
Println prints the message to the output streams followed by a newline.
func (*Logger) SetDebugLevel ¶
SetDebugLevel sets the debugging level for this log instance.
func (*Logger) SetMirrorOutput ¶
SetMirrorOutput sets the mirror output stream to the writers.
func (*Logger) SetOutputs ¶
SetOutputs sets all logging outputs to the outputs presented in the slice of io.Writers.
func (*Logger) SetVerboseLevel ¶
SetVerboseLevel sets the verbosity level for this log instance.