mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-22 05:06:04 +03:00
fixes for doc
This commit is contained in:
parent
aca2daae8d
commit
ea81193031
@ -159,6 +159,7 @@ func (e *Engine) UnsafeLogger() LoggerInterface {
|
||||
return e.logger
|
||||
}
|
||||
|
||||
// SetLogger sets provided logger instance to engine
|
||||
func (e *Engine) SetLogger(l LoggerInterface) *Engine {
|
||||
if l == nil {
|
||||
return e
|
||||
|
@ -125,13 +125,14 @@ func (l *Logger) Warning(args ...interface{}) {
|
||||
l.logger.Warning(args...)
|
||||
}
|
||||
|
||||
// Warningf logs a message using WARNING as log level.
|
||||
func (l *Logger) Warningf(format string, args ...interface{}) {
|
||||
l.mutex.Lock()
|
||||
defer l.mutex.Unlock()
|
||||
l.logger.Warningf(format, args...)
|
||||
}
|
||||
|
||||
// Warningf logs a message using WARNING as log level.
|
||||
// Notice logs a message using NOTICE as log level.
|
||||
func (l *Logger) Notice(args ...interface{}) {
|
||||
l.mutex.Lock()
|
||||
defer l.mutex.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user