Documentation ¶
Overview ¶
Package loggermdl
Package loggermdl will help you log error
Index ¶
- func GetCallers(skip int) string
- func Init(fileName string, ...)
- func LogDebug(args ...interface{})
- func LogError(args ...interface{})
- func LogHREnd()
- func LogHRStart()
- func LogInfo(args ...interface{})
- func LogPanic(args ...interface{})
- func LogSpot(args ...interface{})
- func LogVars(xvars ...interface{})
- func LogWarn(args ...interface{})
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(fileName string, maxBackupCnt, maxBackupFileSize, maxAgeForBackupFileInDays int, loglevel zapcore.Level)
Init Init Logger maxBackupFileSize, megabytes maxAgeForBackupFile, days
Example ¶
Init("filename", 3, 7, 5, zapcore.DebugLevel)
Output:
func LogDebug ¶
func LogDebug(args ...interface{})
LogDebug logs a message at level Debug on the standard logger.
Example ¶
LogDebug("a")
Output:
func LogError ¶
func LogError(args ...interface{})
LogError logs a message at level Error on the standard logger.
Example ¶
LogError("a")
Output:
func LogHREnd ¶
func LogHREnd()
LogHREnd can end line with <<<
Example ¶
LogHREnd()
Output: <<<<<<<<<<<<<<<<<<<<<<<
func LogHRStart ¶
func LogHRStart()
LogHRStart can end line with <<<
Example ¶
LogHRStart()
Output: >>>>>>>>>>>>>>>>>>>>>>>
func LogInfo ¶
func LogInfo(args ...interface{})
LogInfo logs a message at level Info on the standard logger.
Example ¶
LogInfo("a")
Output:
func LogPanic ¶
func LogPanic(args ...interface{})
LogPanic logs a message at level Panic on the standard logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.