From 7465a0a000005ebe6c224b6f6d7d977363095822 Mon Sep 17 00:00:00 2001 From: Binaek Sarkar Date: Wed, 22 Dec 2021 13:14:53 +0530 Subject: [PATCH] taking suggestions --- global.go | 2 +- intlogger.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/global.go b/global.go index 36888fd..b9f0021 100644 --- a/global.go +++ b/global.go @@ -15,7 +15,7 @@ var ( DefaultOptions = &LoggerOptions{ Level: DefaultLevel, Output: DefaultOutput, - TimeFn: func() time.Time { return time.Now() }, + TimeFn: time.Now, } ) diff --git a/intlogger.go b/intlogger.go index 2d63fae..9a4ef31 100644 --- a/intlogger.go +++ b/intlogger.go @@ -117,7 +117,7 @@ func newLogger(opts *LoggerOptions) *intLogger { json: opts.JSONFormat, name: opts.Name, timeFormat: TimeFormat, - timeFn: func() time.Time { return time.Now() }, + timeFn: time.Now, disableTime: opts.DisableTime, mutex: mutex, writer: newWriter(output, opts.Color),