package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# Functions
BackendOption creates option for the specified backend.
DBFactory is factory of file logger.
DBGetterFactory creates a getter for the DB logger.
DBSweeperFactory creates DB sweeper.
Debug ...
Debugf for debuging with format.
Error for logging error.
Errorf for logging error with format.
Fatal ...
Fatalf for fatal error with error.
FileFactory is factory of file logger.
FileGetterFactory creates a getter for the "FILE" logger.
FileSweeperFactory creates file sweeper.
GetLogDataGetter return the 1st matched log data getter interface
loggerOptions ...Option : logger options
If failed, configured but initialize failed: a nil log data getter and a non-nil error will be returned.
GetLogger gets an unified logger entry for logging per the passed settings.
GetLoggerName return a logger name by Interface.
GetSweeper gets an unified sweeper controller for sweeping purpose.
GetterOption creates option for the getter.
HasGetter checks if the logger with the name provides a log data getter.
HasSweeper checks if the logger with the name provides a sweeper.
Info ...
Infof for logging info with format.
Init the loggers and sweepers.
IsKnownLevel is used to check if the logger level is supported.
IsKnownLogger checks if the logger is supported with name.
NewEntry creates a new logger Entry.
NewSweeperController is constructor of controller.
Retrieve is wrapper func for getter.Retrieve.
StdFactory is factory of std output logger.
SweeperOption creates option for the sweeper.
Warning ...
Warningf for warning with format.
# Constants
NameDB is the unique name of the DB logger.
NameFile is unique name of the file logger.
NameStdOutput is the unique name of the std logger.
# Structs
Declaration is used to declare a supported logger.
Entry provides unique interfaces on top of multiple logger backends.
Option represents settings of the logger.
OptionItem is a simple wrapper of property and value.
SweeperController is an unified sweeper entry and built on top of multiple sweepers.
# Type aliases
Factory creates a new logger based on the settings.
GetterFactory is responsible for creating a log data getter based on the options.
SweeperFactory is responsible for creating a sweeper.Interface based on the settings.