We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcddcf commit 42d44b8Copy full SHA for 42d44b8
internal/logging/logging.go
@@ -23,7 +23,6 @@ package logging
23
import (
24
"fmt"
25
"io"
26
- "os"
27
"strings"
28
29
"github.com/sirupsen/logrus"
@@ -56,13 +55,8 @@ const (
56
55
var defaultLogger *logrus.Logger
57
58
func init() {
59
- // Initialize the default logger with sensible defaults
60
- defaultLogger = logrus.New()
61
- defaultLogger.SetLevel(logrus.InfoLevel)
62
- defaultLogger.SetFormatter(&logrus.TextFormatter{
63
- FullTimestamp: true,
64
- })
65
- defaultLogger.SetOutput(os.Stdout)
+ // Use the process-wide standard logger so that CLI flags and InitLogging() apply here too
+ defaultLogger = logrus.StandardLogger()
66
}
67
68
// SetupLogging configures the global logger with the provided options
0 commit comments