package
0.0.0-20241014013326-0cd9b86c656b
Repository: https://github.com/kylinsoong/golang.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Close informs the configured loggers that they are being closed and should cleanup (for instance, flushing any queued log messages).
Critical sends a message to the logger object to record critical level statements (these indicate conditions that should never occur and might cause a failure/crash of the executing program or unexpected outcome from the requested action).
Criticalf formats a message before sending it to the logger object to record critical level statements (these indicate conditions that should never occur and might cause a failure/crash of the executing program or unexpected outcome from the requested action).
Debug sends a message to the logger object to record debug/trace level statements.
Debugf formats a message before sending it to the logger object to record debug/trace level statements.
Error sends a message to the logger object to record error level statements (these indicate conditions that should not occur and may indicate a failure in performing the requested action).
Errorf formats a message before sending it to the logger object to record error level statements (these indicate conditions that should not occur and may indicate a failure in performing the requested action).
Fatal sends a CRITICAL message to the logger object and then exits.
Fatalf sends a formatted CRITICAL message to the logger object and then exits.
GetLogLevel returns the current package-level filtering.
Info sends a message to the logger object to record informational level statements (these should be statements that can normally be logged without causing performance issues).
Infof formats a message before sending it to the logger object to record informational level statements (there should be statements that can normally be logged without causing performance issues).
NewLogLevel converts a string to a log level.
Panic sends a CRITICAL message to the logger object and then calls panic.
Panicf sends a formatted CRITICAL message to the logger object and then calls panic.
RegisterLogger must be called to map a concrete logger object with each log level.
SetLogLevel sets the current package-level filtering.
Warning sends a message to the logger object to record warning level statements (these indication conditions that are unexpected or may cause issues but are not normally going to affect the program execution).
Warningf formats a message before sending it to the logger object to record warning level statements (these indication conditions that are unexpected or may cause issues but are not normally going to affect the program execution).
# Constants
No description provided by the author
Must be in sequential ascending order based on priority (higher priorities have higher numeric values).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Generic interface that all concrete loggers must implement.
# Type aliases
LogLevel is used for global (package-level) filtering of log messages based on their priority (this filtering is applied before all other filtering which might be provided by the concrete logger).