Add --trace and --no-log-dates; add docs
This commit is contained in:
parent
7845eb0124
commit
5cc0b194d3
9 changed files with 286 additions and 217 deletions
|
@ -83,6 +83,11 @@ func SetLevel(newLevel Level) {
|
|||
level = newLevel
|
||||
}
|
||||
|
||||
// DisableDates disables the date/time prefix
|
||||
func DisableDates() {
|
||||
log.SetFlags(0)
|
||||
}
|
||||
|
||||
// ToLevel converts a string to a Level. It returns InfoLevel if the string
|
||||
// does not match any known log levels.
|
||||
func ToLevel(s string) Level {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue