1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00

Allow setting of stderr level

This commit is contained in:
2021-04-09 09:40:25 -07:00
parent 131f2a4994
commit 2e01f23b30

View File

@@ -112,6 +112,10 @@ func createLog(e Entry) {
sliceTex.Unlock()
}
func SetLogLevel(level Level) {
stderrClient.LogLevel = level
}
// SetLogLevel set log level of logger
func (c *Client) SetLogLevel(level Level) {
if !c.initialized {