We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c50c1f2 commit 7aa094dCopy full SHA for 7aa094d
1 file changed
logger/logrus_logger.go
@@ -29,15 +29,15 @@ type baseLogrus struct {
29
//
30
// - If the logger type specified in config is not supported, the function panics.
31
func NewBaseLogger(config *Config) BaseLogger {
32
- if config == nil {
33
- config = &Config{
34
- BaseLoggerType: Logrus,
35
- Level: DebugLevel,
36
- FullTimestamp: false,
37
- TimestampFormat: "2006-01-02 15:04:05",
38
- DisableTimestamp: true,
39
- }
40
+ if config == nil {
+ config = &Config{
+ BaseLoggerType: Logrus,
+ Level: DebugLevel,
+ FullTimestamp: false,
+ TimestampFormat: "2006-01-02 15:04:05",
+ DisableTimestamp: true,
+ }
41
42
switch config.BaseLoggerType {
43
case Logrus:
0 commit comments