3 Commits
Author SHA1 Message Date
jspc 86eec44700 log: Allow eggos implementations to programatically set log levels (#96)
When running applications on environments where there is no environment, calls to os.Setenv to set a loglevel have inconsistent results. Similarly, setting this environment variable before the first log event, and thus making that call moot, is racy.

Instead, then, export log levels, drop the potential stutter in log.LogLvl to log.Level, and allow implementations/ callers of this package to set a log level accordingly, while maintaining the default behaviour
2022-02-04 23:30:00 +08:00
icexin 99f09278f7 log: change default log level to error 2021-08-02 19:23:31 +08:00
icexin a2fac43358 log: add leveled log 2021-07-31 16:02:33 +08:00