package
0.0.0-20240420182116-ac96246ab101
Repository: https://github.com/f110/github-400-test.git
Documentation: pkg.go.dev
# Functions
AddSystemTarget adds a new logger target to the list of enabled loggers.
AuditLog - logs audit logs to all audit targets.
AuditTargets returns active audit targets.
CriticalIf logs the provided error on the console.
CurrentStats returns the current statistics.
EnableAnonymous - turns anonymous flag to avoid printing sensitive information.
EnableJSON - outputs logs in json format.
EnableQuiet - turns quiet option on.
Error :.
Event sends a event log to log targets.
Fatal prints only fatal error message with no stack trace it will be called for input validation failures.
FatalIf is similar to Fatal() but it ignores passed nil error.
GetAuditEntry returns Audit entry if set.
GetReqInfo returns ReqInfo if set.
HashString - return the highway hash of the passed string.
Info :.
Init sets the trimStrings to possible GOPATHs and GOROOT directories.
IsJSON - returns true if jsonFlag is true.
IsQuiet - returns true if quietFlag is true.
LogAlwaysIf prints a detailed error message during the execution of the server.
LogIf prints a detailed error message during the execution of the server, if it is not an ignored error.
LogIfNot prints a detailed error message during the execution of the server, if it is not an ignored error (either internal or given).
LogOnceConsoleIf - similar to LogOnceIf but exclusively only logs to console target.
LogOnceIf - Logs notification errors - once per error.
LookupConfigForSubSys - lookup logger config, override with ENVs if set, for the given sub-system.
NewConfig - initialize new logger config.
NewReqInfo :.
RegisterError registers the specified rendering function.
SetAuditEntry sets Audit info in the context.
SetLoggerHTTP helper for migrating older config to newer KV format.
SetLoggerHTTPAudit - helper for migrating older config to newer KV format.
SetReqInfo sets ReqInfo in the context.
SystemTargets returns active targets.
UpdateAuditKafkaTargets swaps audit kafka targets with newly loaded ones from the cfg.
UpdateAuditWebhooks swaps audit webhook targets with newly loaded ones from the cfg.
UpdateHTTPWebhooks swaps system webhook targets with newly loaded ones from the cfg.
ValidateSubSysConfig - validates logger related config of given sub-system.
# Constants
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
ConsoleLoggerTgt is a stringified value to represent console logging.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Enumerated level types.
Enumerated level types.
Log types errors.
Enumerated level types.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
Audit/Logger constants.
TimeFormat - logging time format.
Enumerated level types.
# Variables
Default KVS for loggerHTTP and loggerAuditHTTP.
Default KVS for loggerHTTP and loggerAuditHTTP.
Default KVS for loggerHTTP and loggerAuditHTTP.
DisableErrorLog avoids printing error/event/info kind of logs.
ErrCritical is the value panic'd whenever CriticalIf is called.
ExitFunc is called by Fatal() class functions, by default it calls os.Exit().
Help template for logger http and audit.
Help template for logger http and audit.
Help template for logger http and audit.
# Structs
Config console and http logger targets.
Console logger target.
KeyVal - appended to ReqInfo.Tags.
ObjectVersion object version key/versionId.
ReqInfo stores the request info.
# Type aliases
LogOnce provides the function type for logger.LogOnceIf() function.