package
0.0.0-20221121043126-298dde518304
Repository: https://github.com/nitrictech/minio.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 :.
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.
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.
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 :.
NewResponseWriter - returns a wrapped response writer to trap http status codes for auditing purposes.
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.
UpdateAuditWebhookTargets swaps audit webhook targets with newly loaded ones from the cfg.
UpdateSystemTargets swaps targets with newly loaded ones from the cfg.
ValidateSubSysConfig - validates logger related config of given sub-system.
# Constants
Enumerated level types.
Enumerated level types.
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.
Enumerated level types.
Enumerated level types.
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.
Enumerated level types.
Audit/Logger constants.
TimeFormat - logging time format.
# Variables
BodyPlaceHolder returns a dummy body placeholder.
Default KVS for loggerHTTP and loggerAuditHTTP.
Default KVS for loggerHTTP and loggerAuditHTTP.
Default KVS for loggerHTTP and loggerAuditHTTP.
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.
MinimumLogLevel holds the minimum logging level to print - info by default.
# 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.
ResponseWriter - is a wrapper to trap the http response status code.