package
0.3.4
Repository: https://github.com/memoio/minio.git
Documentation: pkg.go.dev

# Packages

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

# 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.
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.
GetAuditKafka - returns a map of registered notification 'kafka' targets.
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.
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

All errors.
Application errors.
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.
Minio errors.
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.
Disable disables all logging, false by default.
ErrCritical is the value panic'd whenever CriticalIf is called.
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.
ResponseWriter - is a wrapper to trap the http response status code.

# Interfaces

Logger interface describes the methods that need to be implemented to satisfy the interface requirements.
Target is the entity that we will receive a single log entry and Send it to the log target e.g.

# Type aliases

Kind specifies the kind of error log.
Level type.