Versions in this module Expand all Collapse all v0 v0.1.3 Aug 2, 2022 v0.1.2 Jul 29, 2022 Changes in this version + const BaseLogger + const DebugLog + const DefaultBaseLogLevel + const DefaultBaseLogRotationFile + const DefaultBaseLogRotationPath + const DefaultDetectLogLevel + const DefaultDetectLogRotationFile + const DefaultDetectLogRotationPath + const DefaultErrorOutputPath + const DefaultLogRotationRootDir + const DefaultLogger + const DefaultNetworkLogLevel + const DefaultNetworkLogRotationFile + const DefaultNetworkLogRotationPath + const DefaultRotationMaxAge + const DefaultRotationMaxBackups + const DefaultRotationMaxSize + const DefaultStatLogLevel + const DefaultStatLogRotationFile + const DefaultStatLogRotationPath + const DefaultStatReportLogLevel + const DefaultStatReportLogRotationFile + const DefaultStatReportLogRotationPath + const DetectLogger + const ErrorLog + const FatalLog + const InfoLog + const LoggerZap + const MaxLogger + const NetworkLogger + const NoneLog + const StatLogger + const StatReportLogger + const TraceLog + const WarnLog + var SeverityName = []string + func ConfigBaseLogger(pluginName string, options *Options) error + func ConfigDefaultBaseLogger(pluginName string) error + func ConfigDefaultDetectLogger(pluginName string) error + func ConfigDefaultNetworkLogger(pluginName string) error + func ConfigDefaultStatLogger(pluginName string) error + func ConfigDefaultStatReportLogger(pluginName string) error + func ConfigDetectLogger(pluginName string, options *Options) error + func ConfigNetworkLogger(pluginName string, options *Options) error + func ConfigStatLogger(pluginName string, options *Options) error + func ConfigStatReportLogger(pluginName string, options *Options) error + func RegisterLoggerCreator(name string, creator loggerCreator) + func SetBaseLogger(logger Logger) + func SetDetectLogger(logger Logger) + func SetNetworkLogger(logger Logger) + func SetStatLogger(logger Logger) + func SetStatReportLogger(logger Logger) + func VerifyLogLevel(level int) error + type DirLogger interface + GetLogDir func() string + type Logger interface + Debugf func(format string, args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatalf func(format string, args ...interface{}) + Infof func(format string, args ...interface{}) + IsLevelEnabled func(l int) bool + SetLogLevel func(l int) error + Tracef func(format string, args ...interface{}) + Warnf func(format string, args ...interface{}) + func GetBaseLogger() Logger + func GetDetectLogger() Logger + func GetNetworkLogger() Logger + func GetStatLogger() Logger + func GetStatReportLogger() Logger + type Options struct + ErrorOutputPaths []string + LogLevel int + OutputPaths []string + RotateOutputPath string + RotationMaxAge int + RotationMaxBackups int + RotationMaxSize int + func CreateDefaultLoggerOptions(rotationPath string, logLevel int) *Options + func (o Options) Verify() error