package
0.0.0-20200710184922-b02d349568dd
Repository: https://github.com/dsoprea/go-logging.git
Documentation: pkg.go.dev

# Functions

AddAdapter registers a new adapter.
AddExcludeFilter adds global exclude filter.
AddIncludeFilter adds global include filter.
ClearAdapters deregisters all adapters.
Errorf returns a stack-wrapped error with a string-substituted message.
GetDefaultAdapterName returns the default adapter name.
Is checks if the left ("actual") error equals the right ("against") error.
IsConfigurationLoaded indicates whether a config has been loaded.
LoadConfiguration loads the effective configuration.
NewConsoleLogAdapter returns a new ConsoleLogAdapter.
NewEnvironmentConfigurationProvider returns a new EnvironmentConfigurationProvider.
NewLogger returns a new logger struct.
NewLoggerWithAdapterName initializes a logger struct to log to a specific adapter.
NewStaticConfigurationProvider returns a new StaticConfigurationProvider struct.
Panic panics with the error.
Panicf panics a stack-wrapped error with a string-substituted message.
PanicIf panics if err is non-nil.
PrintError is a utility function to prevent the caller from having to import the third-party library.
PrintErrorf is a utility function to prevent the caller from having to import the third-party library.
RemoveExcludeFilter removes global exclude filter.
RemoveIncludeFilter removes global include filter.
SetDefaultAdapterName sets the default adapter.
Wrap returns a stack-wrapped error.

# Constants

LevelDebug exposes debug logging an above.
LevelError exposes error logging and above.
LevelInfo exposes info logging and above.
LevelWarning exposes warning logging and above.

# Structs

ConsoleLogAdapter prints logging to STDOUT.
EnvironmentConfigurationProvider configuration-provider.
LogContext encapsulates the current context for passing to the adapter.
Logger is the main logger type.
MessageContext describes the current logging context and can be used for substitution in a template string.
StaticConfigurationProvider configuration-provider.

# Interfaces

ConfigurationProvider describes minimal configuration implementation.
LogAdapter describes minimal log-adapter functionality.

# Type aliases

LogLevel describes a log-level.
LogLevelName describes the name of a log-level.