2020-10-29 18:54:39 -04:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
|
|
2021-05-19 07:30:26 -04:00
|
|
|
package featureflag
|
2020-10-29 18:54:39 -04:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
2023-06-11 01:24:35 -04:00
|
|
|
"github.com/mattermost/mattermost/server/public/shared/mlog"
|
2020-10-29 18:54:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type splitLogger struct {
|
|
|
|
|
wrappedLog *mlog.Logger
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 02:46:50 -04:00
|
|
|
func (s *splitLogger) Error(msg ...any) {
|
2020-10-29 18:54:39 -04:00
|
|
|
s.wrappedLog.Error(fmt.Sprint(msg...))
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 02:46:50 -04:00
|
|
|
func (s *splitLogger) Warning(msg ...any) {
|
2020-10-29 18:54:39 -04:00
|
|
|
s.wrappedLog.Warn(fmt.Sprint(msg...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Ignoring more verbose messages from split
|
2022-07-05 02:46:50 -04:00
|
|
|
func (s *splitLogger) Info(msg ...any) {
|
2020-10-29 18:54:39 -04:00
|
|
|
//s.wrappedLog.Info(fmt.Sprint(msg...))
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 02:46:50 -04:00
|
|
|
func (s *splitLogger) Debug(msg ...any) {
|
2020-10-29 18:54:39 -04:00
|
|
|
//s.wrappedLog.Debug(fmt.Sprint(msg...))
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 02:46:50 -04:00
|
|
|
func (s *splitLogger) Verbose(msg ...any) {
|
2020-10-29 18:54:39 -04:00
|
|
|
//s.wrappedLog.Info(fmt.Sprint(msg...))
|
|
|
|
|
}
|