package
1.0.0-rc.3
Repository: https://github.com/iotaledger/hive.go.git
Documentation: pkg.go.dev

# Functions

InitGlobalLogger initializes the global logger from the provided config.
NewEventCore creates a core that publishes log messages as events.
NewExampleLogger builds a Logger that's designed to be only used in tests or examples.
NewLogger returns a new named child of the global root logger.
NewNopLogger returns a no-op Logger.
NewRootLogger creates a new root logger from the provided configuration.
NewRootLoggerFromConfiguration creates a new root logger from the provided configuration.
NewWrappedLogger creates a new WrappedLogger.
SetLevel alters the logging level of the global logger.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LevelDebug logs are typically voluminous, and are usually disabled in production.
LevelError logs are high-priority.
LevelFatal logs a message, then calls os.Exit(1).
LevelInfo is the default logging priority.
LevelPanic logs a message, then panics.
LevelWarn logs are more important than Info, but don't need individual human review.

# Variables

ErrGlobalLoggerAlreadyInitialized is returned when InitGlobalLogger is called more than once.
No description provided by the author

# Structs

Config holds the settings to configure a root logger instance.
EventsStruct contains all the events that are triggered by the logger.
No description provided by the author
WrappedLogger is a wrapper to call logging functions in case a logger was passed.

# Type aliases

A Level is a logging priority.
The Logger uses the sugared logger.