Documentation ¶
Overview ¶
Package flog is a simple wrapper around Golang's log package which adds verbosity support.
Index ¶
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
}
A Logger represents an active logging instance that generates lines of output to an io.Writer. Each logging operation makes a single call to the Writer's Encode method. A Logger can be used simultaneously from multiple goroutines; it guarantees to serialize access to the Writer.
func (*Logger) ShowLineNumber ¶
ShowLineNumber enables line number support if show is bigger than zero.
type Verbose ¶
type Verbose struct {
// contains filtered or unexported fields
}
Verbose is a type that implements Printf and Println with verbosity support.
func (Verbose) Ok ¶
Ok will return true if this log level is enabled, guarded by the value of verbosity level.
Click to show internal directories.
Click to hide internal directories.