package
1.65.4
Repository: https://github.com/untangle/golang-shared.git
Documentation: pkg.go.dev

# Functions

For backward compatibility.
For backward compatibility.
For backward compatibility.
DefaultLoggerConfig generates a default config with no file location, and INFO log for all log lines.
DefaultLogWriter creates an io Writer to steam output to the Log facility.
For backward compatibility.
For backward compatibility.
FindLogLevelName returns the log level name for the argumented value.
GetLoggerInstance returns a logger object that is singleton with a wildcard loglevelmap as default.
GetLoggerInstanceWithConfig returns a logger object, that's loaded with the config as well.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
LogMessageSource is for the netfilter interface functions written in C and our LogWriter type that can be created and passed to anything that expects an object with output stream support.
NewLogger creates a new instance of the logger struct with wildcard config.
No description provided by the author
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
For backward compatibility.
SetLoggerInstance will override the singleton instance with a new instance reference This is mostly used for testing concurrency.
For backward compatibility.
For backward compatibility.

# Constants

LogLevelAlert = syslog.h/LOG_ALERT.
LogLevelCrit = syslog.h/LOG_CRIT.
LogLevelDebug = syslog.h/LOG_DEBUG.
LogLevelEmerg = syslog.h/LOG_EMERG.
LogLevelErr = syslog.h/LOG_ERR.
LogLevelInfo = syslog.h/LOG_INFO.
LogLevelNotice = syslog.h/LOG_NOTICE.
LogLevelTrace = custom value.
LogLevelWarn = syslog.h/LOG_WARNING.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Logger struct retains information about the logger related information.
LoggerConfig struct retains information about the where the log level map is stored, default log levels and writer that should be used.
LogLevel struct retains the loglevel information in a string and int.
LogWriter is used to send an output stream to the Log facility.
Ocname struct retains information about the counter name and limit.