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:
parent
131f2a4994
commit
2e01f23b30
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user