# Packages

slogx is extension of slog package and logger package.

# Functions

Debug logs at [LevelDebug].
DebugContext logs at [LevelDebug] from logger in the given context.
Error logs at [LevelError] with an error.
ErrorContext logs at [LevelError] from logger in the given context.
Fatal logs at [LevelFatal] followed by a call to [os.Exit](1).
FatalContext logs at [LevelFatal] and then [os.Exit](1) from logger in the given context.
FromContext returns the logger from the context.
GCPAttrReplacer replaces the default attribute keys with the GCP logging attribute keys.
Info logs at [LevelInfo].
InfoContext logs at [LevelInfo] from logger in the given context.
Init initializes global logger and slog logger with given configuration.
Log emits a log record with the current time and the given level and message.
LogAttrs is a more efficient version of [Logger.Log] that accepts only Attrs.
LogContext logs at the given level from logger in the given context.
NewContext returns a new context with logger attached.
NewGCPHandler returns a new GCP handler.
Panic logs at [LevelPanic] and then panics.
PanicContext logs at [LevelPanic] and then panics from logger in the given context.
SetLevel sets the minimum reporting level for the logger.
Warn logs at [LevelWarn].
WarnContext logs at [LevelWarn] from logger in the given context.
With returns a Logger that includes the given attributes in each output operation.
WithContext returns a new context with given logger attributes.
WithGroup returns a Logger that starts a group, if name is non-empty.
WithGroupContext returns a new context with given group.

# Constants

DefaultLevel is the default minimum reporting level for the logger.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config is the logger configuration.