Refactoring Code
Renamed PcpLogger, SetLogFile(), LogFileName. Changed error messages in loggerConfig.
This commit is contained in:
parent
370a490643
commit
ef6d154d06
9 changed files with 32 additions and 32 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue