2020-07-10 14:17:51 +00:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
2023-03-28 14:16:03 +00:00
|
|
|
"testing"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
2020-07-10 14:17:51 +00:00
|
|
|
"go.uber.org/zap"
|
|
|
|
"go.uber.org/zap/zapcore"
|
2024-01-09 09:32:13 +00:00
|
|
|
"go.uber.org/zap/zaptest"
|
2020-07-10 14:17:51 +00:00
|
|
|
)
|
|
|
|
|
2020-07-24 13:54:03 +00:00
|
|
|
// NewLogger creates a new logger.
|
2024-01-09 08:37:41 +00:00
|
|
|
func NewLogger(t testing.TB) *logger.Logger {
|
2024-10-18 10:31:53 +00:00
|
|
|
return logger.NewLoggerWrapper(
|
|
|
|
zaptest.NewLogger(t,
|
|
|
|
zaptest.Level(zapcore.DebugLevel),
|
|
|
|
zaptest.WrapOptions(zap.Development(), zap.AddCaller()),
|
|
|
|
),
|
|
|
|
)
|
2020-07-10 14:17:51 +00:00
|
|
|
}
|