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 fa86926 commit 43bf9feCopy full SHA for 43bf9fe
main.go
@@ -12,6 +12,13 @@ import (
12
log "github.com/sirupsen/logrus"
13
)
14
15
+func init() {
16
+ customFormatter := new(log.TextFormatter)
17
+ customFormatter.TimestampFormat = "2006-01-02 15:04:05"
18
+ customFormatter.FullTimestamp = true
19
+ log.SetFormatter(customFormatter)
20
+}
21
+
22
func main() {
23
port := "9000"
24
conf, err := LoadConfig("application.yml")
0 commit comments