Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultLogFile is the default disk location for log files. // we use an empty string to indicate log to console DefaultLogFile = "" // DefaultLogLevel is the default level for logging DefaultLogLevel = "INFO" )
Variables ¶
View Source
var ErrInvalidLogLevel = errors.New("invalid log level")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// LogFile provides the filepath to the instances's logfile. Set as empty string to Log to Console
LogFile string `yaml:"log_file,omitempty"`
// LogLevel provides the most granular level (e.g., DEBUG, INFO, ERROR) to log
LogLevel string `yaml:"log_level,omitempty"`
}
Options is a collection of Logging options
func (*Options) Initialize ¶
Click to show internal directories.
Click to hide internal directories.