Refactoring Code

Renamed PcpLogger, SetLogFile(), LogFileName. Changed error messages in loggerConfig.
This commit is contained in:
balandi1 2019-11-26 12:48:48 -05:00
parent 370a490643
commit ef6d154d06
9 changed files with 32 additions and 32 deletions

View file

@ -8,12 +8,12 @@ import (
type Logger interface {
SetNext(logType Logger)
Log(logType int, level log.Level, logData log.Fields, message string)
SetLogFile(prefix string)
CreateLogFile(prefix string)
}
type LoggerImpl struct {
Type int
AllowOnConsole bool
LogFileName *os.File
LogFile *os.File
next Logger
}