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:
Tai Groot 2021-04-09 09:40:25 -07:00
parent 131f2a4994
commit 2e01f23b30
Signed by: taigrr
GPG Key ID: D00C269A87614812

View File

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