Minor code style fixes

Removed the global logger instance and kept it in LoggerImpl
struct.
Changed access level for members of LoggerImpl.
This commit is contained in:
balandi1 2019-12-04 14:56:48 -05:00
parent c914161643
commit 64ab443d25
8 changed files with 111 additions and 105 deletions

View file

@ -16,10 +16,11 @@ type baseLogData struct {
}
type LoggerImpl struct {
*baseLogData
Type int
AllowOnConsole bool
LogFile *os.File
logType int
allowOnConsole bool
logFile *os.File
next Logger
logger *log.Logger
}
func (l *LoggerImpl) WithFields(logData log.Fields) *LoggerImpl {