package
1.0.3
Repository: https://github.com/lngwu11/toolgo.git
Documentation: pkg.go.dev

# Functions

ConfigureLoggers configures loggers on the default context according to the given string specification, which specifies a set of modules and their associated logging levels.
DefaultContext returns the global default logging context.
DefaultFormatter returns the parameters separated by spaces except for filename and line which are separated by a colon.
GetLogger returns a Logger for the given module name, creating it and its parents if necessary.
GetLoggerWithLabels returns a Logger for the given module name with the correct associated labels, creating it and its parents if necessary.
LoggerInfo returns information about the configured loggers and their logging levels.
NewContext returns a new Context with no writers set.
NewLogFileWriter returns a new writer that writes log messages to the given file and formatting the messages with the given formatter.
NewMinimumLevelWriter returns a Writer that will only pass on the Write calls to the provided writer if the log level is at or above the specified minimum level.
NewSimpleWriter returns a new writer that writes log messages to the given io.Writer formatting the messages with the given formatter.
ParseConfigString parses a logger configuration string into a map of logger names and their associated log level.
ParseLevel converts a string representation of a logging level to a Level.
RegisterWriter adds the writer to the list of writers in the DefaultContext that get notified when logging.
RemoveWriter removes the Writer identified by 'name' and returns it.
ReplaceDefaultWriter is a convenience method that does the equivalent of RemoveWriter and then RegisterWriter with the name "default".
ResetLogging iterates through the known modules and sets the levels of all to UNSPECIFIED, except for <root> which is set to WARNING.
ResetWriters puts the list of writers back into the initial state.

# Constants

The severity levels.
The severity levels.
DefaultWriterName is the name of the default writer for a Context.
The severity levels.
The severity levels.
The severity levels.
The severity levels.
The severity levels.

# Variables

# Structs

Context produces loggers for a hierarchy of modules.
Entry
Entry represents a single log message.
LogFileWriter is a simple log file writer.
A Logger represents a logging module.

# Interfaces

Writer is implemented by any recipient of log messages.

# Type aliases

Config is a mapping of logger module names to logging severity levels.
Level holds a severity level.