Documentation
¶
Index ¶
- type Config
- type Logs
- func (logs *Logs) ERR(message string, args ...interface{})
- func (logs *Logs) L1(message string, args ...interface{})
- func (logs *Logs) L2(message string, args ...interface{})
- func (logs *Logs) L3(message string, args ...interface{})
- func (logs *Logs) SQL(sql string, args ...interface{})
- func (logs *Logs) WithSection(section string) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Level int
}
func ConfigFromOpts ¶
func ConfigFromOpts() *Config
Returns a new Config struct populated with the configuration values read from the command line or environment variables
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
func (*Logs) WithSection ¶
Sets a scoped log section and returns a functor that should be deferred that resets the log section to its previous scope
Click to show internal directories.
Click to hide internal directories.