From 88d058528f7d86dd49c1d5a73fddb576a136c8a1 Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Mon, 1 Feb 2021 00:24:35 +0000 Subject: [PATCH] Changed logging to stdout --- log.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/log.go b/log.go index ac56351..bbcb8b2 100644 --- a/log.go +++ b/log.go @@ -14,9 +14,9 @@ var ( ) func logInit() { - logInfo = log.New(os.Stderr, "INFO: ", log.Lmsgprefix|log.Ldate|log.Ltime) - logWarn = log.New(os.Stderr, "WARN: ", log.Lmsgprefix|log.Ldate|log.Ltime) - logErr = log.New(os.Stderr, "ERR: ", log.Lmsgprefix|log.Ldate|log.Ltime) - logFatal = log.New(os.Stderr, "FATAL: ", log.Lmsgprefix|log.Ldate|log.Ltime) - logDebug = log.New(os.Stderr, "DEBUG: ", log.Lmsgprefix|log.Ldate|log.Ltime) + logInfo = log.New(os.Stdout, "INFO: ", log.Lmsgprefix|log.Ldate|log.Ltime) + logWarn = log.New(os.Stdout, "WARN: ", log.Lmsgprefix|log.Ldate|log.Ltime) + logErr = log.New(os.Stdout, "ERR: ", log.Lmsgprefix|log.Ldate|log.Ltime) + logFatal = log.New(os.Stdout, "FATAL: ", log.Lmsgprefix|log.Ldate|log.Ltime) + logDebug = log.New(os.Stdout, "DEBUG: ", log.Lmsgprefix|log.Ldate|log.Ltime) }