# Functions
Error returns an Attr for an error value.
GlogRotateHeader append rotate header to a file named by filename.
MultiHandler creates a slog.Handler that duplicates its writes to all the provided handlers, similar to the Unix tee(1) command.
MultiReplaceAttr creates a [ReplaceAttr] that call all the provided replacers one by one.
NewCommonHandler creates a CommonHandler that writes to w, using the given options.
NewGlogHandler creates a GlogHandler that writes to w, using the given options.
NewGlogHumanHandler creates a human-readable GlogHandler that writes to w, using the given options.
NewRotateGlogHandler creates a GlogHandler that writes to rotate file, using the given options.
NewRotateGlogHumanHandler creates a human-readable GlogHandler that writes to rotate file, using the given options.
NewRotateHandler creates a slog.Handler that writes to rotate file, using the given options.
NewRotateJSONHandler creates a JSONHandler that writes to rotate file, using the given options.
NewRotateTextHandler creates a TextHandler that writes to rotate file, using the given options.
ReplaceAttrTruncate returns [ReplaceAttr] which shrinks attr's key and value[string]'s len to n at most.
ShortSource returns a Source for the log event.
WithRotateFileLinkPath sets FileLinkPath in rotate.
WithRotateFilePathRotateLayout sets FilePathRotateLayout in rotate.
WithRotateFilePathRotateStrftime sets time layout in strftime format to format rotate file.
WithRotateForceNewFileOnStartup sets ForceNewFileOnStartup in rotate.
WithRotateMaxAge sets MaxAge in rotate.
WithRotateMaxCount sets MaxCount in rotate.
WithRotateRotateInterval sets RotateInterval in rotate.
WithRotateRotateSize sets RotateSize in rotate.
# Constants
DisableTimestamp disable timestamp logging.
ErrorKey is the key used by the handlers for the error when the log method is called.
SinceStartTimestamp enable the time passed since beginning of execution instead of logging the full timestamp when a TTY is attached.
# Variables
ShortCallerPrettyfier modify the content of the function and file keys in the data when ReportCaller is activated.
# Structs
EmptyRotateOption does not alter the configuration.
No description provided by the author
# Interfaces
A RotateOption sets options.
# Type aliases
NewHandler creates a slog.Handler that writes to w, using the given options.
ReplaceAttrKeys allows customization of the key names for default fields.
RotateOptionFunc wraps a function that modifies rotate into an implementation of the RotateOption interface.
No description provided by the author