Documentation ¶
Index ¶
- Constants
- Variables
- func InitJiaLog()
- func NewWriter(jiaLog *JiaLog) *writer
- func SetEnableConsole(isConsole bool)
- func SetEnableLog(isLog bool)
- func SetLogPath(path string)
- type JiaLog
- func (l *JiaLog) Debug(log, target string)
- func (l *JiaLog) Error(log, target string)
- func (l *JiaLog) Info(log, target string)
- func (l *JiaLog) Print(log, target string)
- func (l *JiaLog) SetEnableConsole(isConsole bool)
- func (l *JiaLog) SetEnableLog(isLog bool)
- func (l *JiaLog) SetLogPath(path string)
- func (l *JiaLog) Warn(log, target string)
- type JiaLogger
Constants ¶
View Source
const ( LogLevelDebug = "DEBUG" LogLevelPrint = "PRINT" LogLevelInfo = "INFO" LogLevelWarn = "WARN" LogLevelError = "Error" )
Variables ¶
Functions ¶
func InitJiaLog ¶
func InitJiaLog()
func SetEnableConsole ¶
func SetEnableConsole(isConsole bool)
func SetEnableLog ¶
func SetEnableLog(isLog bool)
func SetLogPath ¶
func SetLogPath(path string)
Types ¶
type JiaLog ¶
type JiaLog struct {
// contains filtered or unexported fields
}
func (*JiaLog) SetEnableConsole ¶
func (*JiaLog) SetEnableLog ¶
func (*JiaLog) SetLogPath ¶
Click to show internal directories.
Click to hide internal directories.