2 Commits
v0.3.0 ... main

Author SHA1 Message Date
2d9a50cd21 almost dead 2023-04-16 02:17:35 -04:00
8e669449ee cleaned up SetLoggingLevel 2022-12-10 23:42:39 -05:00
2 changed files with 29 additions and 27 deletions

View File

@@ -1,5 +1,11 @@
# levelinglogger
# levellogger
## Intro
blah blah blah
Move along ---- nothing to see here. :joy:
This was a tiny little idea. However, Structured Logging for go is on the way.
Until then Zap, Zerolog and Logrus all provide spectacular logging.
Enjoy

View File

@@ -190,9 +190,6 @@ func (ll *LevelLogger) SetFlags(logname string, newFlags int) {
}
func (ll *LevelLogger) SetLoggingLevel(l int) {
if l < 0 || l > 8 {
ll.CurrentLevel = 4 // default
} else {
switch l {
case 0:
ll.CurrentLevel = LevelLoggerOff
@@ -216,7 +213,6 @@ func (ll *LevelLogger) SetLoggingLevel(l int) {
ll.CurrentLevel = InfoLevel
}
}
}
func (ll *LevelLogger) Blank(n int) {
outs := " "