Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAppLogger ¶
type IAppLogger interface {
LogErrorf(cmd string, message string, data ...interface{})
LogWarnf(cmd string, message string, data ...interface{})
LogInfof(cmd string, message string, data ...interface{})
LogDebugf(cmd string, message string, data ...interface{})
LogError(cmd string, data ...interface{})
LogErrorE(cmd string, data error)
LogErrorEf(cmd string, message string, e error)
LogWarn(cmd string, data ...interface{})
LogInfo(cmd string, data ...interface{})
LogDebug(cmd string, data ...interface{})
StartLogging()
FinishLogging()
}
main interface for the SimpleLogger
type ISimpleChannel ¶
type ISimpleChannel interface {
GetLog() kitlog.Logger
SetLog(log kitlog.Logger)
GetFileName() string
SetFileName(sessionid string)
GetSessionID() string
SetSessionID(sessionid string)
//log functions
GetLogLevel() kitlevel.Option
SetLogLevel(kitlevel.Option)
Open()
Close()
}
main interface for the Simple Channel
type ISimpleLogger ¶
type ISimpleLogger interface {
//Print To Screen functions
GetPrintToScreen() PrintLevel
SetPrintToScreen(PrintLevel)
LogErrorf(cmd string, message string, data ...interface{})
LogWarnf(cmd string, message string, data ...interface{})
LogInfof(cmd string, message string, data ...interface{})
LogDebugf(cmd string, message string, data ...interface{})
LogError(cmd string, data ...interface{})
LogErrorE(cmd string, data error)
LogErrorEf(cmd string, message string, e error)
LogWarn(cmd string, data ...interface{})
LogInfo(cmd string, data ...interface{})
LogDebug(cmd string, data ...interface{})
OpenSessionFileLog(logfilename string, sessionid string)
GetSessionIDs() []string
CloseChannel(sessionid string)
CloseAllChannels()
OpenChannel(sessionid string)
OpenAllChannels()
AddChannel(log ISimpleChannel)
GetChannel(sessionid string) ISimpleChannel
GetChannels() map[string]ISimpleChannel
SetChannelLogLevel(sessionid string, lvl kitlevel.Option)
}
main interface for the SimpleLogger
type PrintLevel ¶
type PrintLevel int
const ( PrintNone PrintLevel = 0 PrintInfo PrintLevel = 1 PrintDebug PrintLevel = 2 )
Click to show internal directories.
Click to hide internal directories.