Versions in this module Expand all Collapse all v0 v0.0.2 Aug 17, 2021 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const LogBackupCount + const LogRotateDate + const LogRotateSize + const RollingPolicySize + const WARN + var LogBackupMaxCount = 100 + var LogRotateMaxDate = 10 + var LogRotateMaxSize = 50 + var Logger lager.Logger + var Writers = make(map[string]io.Writer) + func CopyFile(srcFile, destFile string) error + func Debug(action string, data ...lager.Data) + func Debugf(format string, args ...interface{}) + func Error(action string, err error, data ...lager.Data) + func Errorf(err error, format string, args ...interface{}) + func EscapPath(msg string) string + func Fatal(action string, err error, data ...lager.Data) + func Fatalf(err error, format string, args ...interface{}) + func FilterFileList(path string, fileRegexp *regexp.Regexp) ([]string, error) + func Info(action string, data ...lager.Data) + func Infof(format string, args ...interface{}) + func Init() error + func InitWithConfig(passLagerDef *PassLagerCfg) error + func InitWithFile(lagerFile string) error + func Initialize(writers, loggerLevel, loggerFile, rollingPolicy string, logFormatText bool, ...) + func LagerInit(c Config) + func LogRotate(path string, MaxFileSize int, MaxBackupCount int) + func NewLogger(component string) lager.Logger + func NewLoggerExt(component string, appGUID string) lager.Logger + func RegisterWriter(name string, writer io.Writer) + func WalkFile(path string, fileRegexp *regexp.Regexp, onMatched func(string) error, ...) error + func Warn(action string, data ...lager.Data) + func Warnf(format string, args ...interface{}) + type Config struct + EnableRsyslog bool + LogFormatText bool + LoggerFile string + LoggerLevel string + RsyslogAddr string + RsyslogNetwork string + Writers []string + func DefaultConfig() *Config + type Lager struct + LogBackupCount int + LogFormatText bool + LogRotateDate int + LogRotateSize int + LoggerFile string + LoggerLevel string + RollingPolicy string + Writers string + type PassLagerCfg struct + LogBackupCount int + LogFormatText bool + LogRotateDate int + LogRotateSize int + LoggerFile string + LoggerLevel string + RollingPolicy string + Writers string + var PassLagerDefinition *PassLagerCfg = DefaultLagerDefinition() + func DefaultLagerDefinition() *PassLagerCfg v0.0.1 Aug 17, 2021