package
0.0.11
Repository: https://github.com/grailbio/base.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Debug logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Debugf uses fmt.Sprintf to log a templated message and the key-value pairs defined in contextFields from ctx.
DebugfNoCtx uses fmt.Sprintf to log a templated message.
DebugNoCtx logs a message and variadic key-value pairs.
Debugv logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Error logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Error logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Errorf uses fmt.Sprintf to log a templated message and the key-value pairs defined in contextFields from ctx.
Errorf uses fmt.Errorf to construct an error and log its message If ctx is nil, all fields from contextFields will be omitted.
ErrorfNoCtx uses fmt.Sprintf to log a templated message.
ErrorNoCtx logs a message and variadic key-value pairs.
ErrorNoCtx logs a message and variadic key-value pairs.
Errorv logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Errorv logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Fatal logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Fatalf uses fmt.Sprintf to log a templated message and the key-value pairs defined in contextFields from ctx.
FatalfNoCtx uses fmt.Sprintf to log a templated message.
FatalNoCtx logs a message and variadic key-value pairs.
Fatalv logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Instantiate a new logger and assign any key-value pair to addedInfo field in logger to log additional information specific to service.
Info logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Infof uses fmt.Sprintf to log a templated message and the key-value pairs defined in contextFields from ctx.
InfofNoCtx uses fmt.Sprintf to log a templated message.
InfoNoCtx logs a message and variadic key-value pairs.
Infov logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
No description provided by the author
No description provided by the author
NewLoggerFromCore allows the caller to pass in a zap.SugaredLogger into the logger.
NewLogger creates a new logger instance.
SetLoggerConfig sets the logging config.
SetLoggerLevel sets the logging level.
Warn logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
Warnf uses fmt.Sprintf to log a templated message and the key-value pairs defined in contextFields from ctx.
WarnfNoCtx uses fmt.Sprintf to log a templated message.
WarnNoCtx logs a message and variadic key-value pairs.
Warnv logs a message, the key-value pairs defined in contextFields from ctx, and variadic key-value pairs.
WithGinRequestID creates a uuid that is set as a string on the gin Context and as a uuid on the regular-flavor Request context that it wraps.
WithRequestID sets the uuid value for the RequestIDContextKey key in the context.

# Constants

DebugLevel logs are typically voluminous.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
LOG_LEVEL_ENV_VAR is the environment variable name used to set logging level.
Best practices for avoiding key collisions in context say this shouldn't be a string type.
RFC3339TrailingNano is RFC3339 format with trailing nanoseconds precision.
WarnLevel logs are more important than Info, but don't need individual human review.

# Structs

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