Versions in this module Expand all Collapse all v1 v1.0.0 Jan 25, 2023 Changes in this version + const TimeFormat + var AuditTargets = []Target + var ColorBgRed = func() func(format string, a ...interface{}) string { ... }() + var ColorBold = func() func(a ...interface{}) string { ... }() + var ColorFgRed = func() func(a ...interface{}) string { ... }() + var ColorFgWhite = func() func(format string, a ...interface{}) string { ... }() + var Disable = false + var ErrCritical struct + var Targets = []Target + func AddAuditTarget(t Target) + func AddTarget(t Target) + func AuditLog(w http.ResponseWriter, r *http.Request, api string, ...) + func CriticalIf(ctx context.Context, err error) + func EnableAnonymous() + func EnableJSON() + func EnableQuiet() + func Fatal(err error, msg string, data ...interface{}) + func FatalIf(err error, msg string, data ...interface{}) + func Info(msg string, data ...interface{}) + func Init(goPath string, goRoot string) + func IsJSON() bool + func IsQuiet() bool + func LogAlwaysIf(ctx context.Context, err error) + func LogIf(ctx context.Context, err error) + func LogOnceIf(ctx context.Context, err error, id interface{}) + func RegisterUIError(f func(string, error, bool) string) + func SetReqInfo(ctx context.Context, req *ReqInfo) context.Context + func StartupMessage(msg string, data ...interface{}) + type Console interface + type KeyVal struct + Key string + Val string + type Level int8 + const ErrorLvl + const FatalLvl + const InformationLvl + func (level Level) String() string + type ReqInfo struct + API string + BucketName string + DeploymentID string + ObjectName string + RemoteHost string + RequestID string + UserAgent string + func GetReqInfo(ctx context.Context) *ReqInfo + func NewReqInfo(remoteHost, userAgent, deploymentID, requestID, api, bucket, object string) *ReqInfo + func (r *ReqInfo) AppendTags(key string, val string) *ReqInfo + func (r *ReqInfo) GetTags() []KeyVal + func (r *ReqInfo) SetTags(key string, val string) *ReqInfo + type ResponseWriter struct + func NewResponseWriter(w http.ResponseWriter) *ResponseWriter + func (lrw *ResponseWriter) Flush() + func (lrw *ResponseWriter) WriteHeader(code int) + type Target interface + Send func(entry interface{}) error Incompatible versions in this module v3.0.0+incompatible Nov 17, 2023 v2.0.0+incompatible May 16, 2023