Discover Packages
github.com/earthly/earthly
slog
package
Version:
v0.8.13
Opens a new window with list of versions in this module.
Published: May 28, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package slog is a structured logging library which is for use by shellrepeater
or any other servers, it should not be used by commands that are run directly
by users (e.g. the earthly binary)
With adds logging metadata to the logger within the context.
WithLogger returns a new context with a logger added to it.
Logger represents a logger with some structured metadata associated.
GetLogger returns a logger associated with this context.
Debug logs debug message.
Error logs error message.
Fatal logs fatal message and calls os.Exit(1).
Panic logs panic message and calls panic.
Warning logs warning message.
With adds metadata to the logger.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.