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:
parent
c914161643
commit
64ab443d25
8 changed files with 111 additions and 105 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue