remove ForceColors for logrus package.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
9595062bbf
commit
d94e305e73
|
@ -73,13 +73,11 @@ func InitLog() error {
|
||||||
|
|
||||||
LogAccess.Formatter = &logrus.TextFormatter{
|
LogAccess.Formatter = &logrus.TextFormatter{
|
||||||
TimestampFormat: "2006/01/02 - 15:04:05",
|
TimestampFormat: "2006/01/02 - 15:04:05",
|
||||||
ForceColors: true,
|
|
||||||
FullTimestamp: true,
|
FullTimestamp: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
LogError.Formatter = &logrus.TextFormatter{
|
LogError.Formatter = &logrus.TextFormatter{
|
||||||
TimestampFormat: "2006/01/02 - 15:04:05",
|
TimestampFormat: "2006/01/02 - 15:04:05",
|
||||||
ForceColors: true,
|
|
||||||
FullTimestamp: true,
|
FullTimestamp: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue