package
0.2.0
Repository: https://github.com/g3n/engine.git
Documentation: pkg.go.dev

# Functions

AddWriter adds a writer to the current outputs of the default logger.
Debug emits a DEBUG level log message.
Error emits an ERROR level log message.
Fatal emits a FATAL level log message.
Find finds a logger with the specified path.
Info emits an INFO level log message.
Log emits a log message with the specified level.
New creates and returns a new logger with the specified name.
NewConsole creates and returns a new logger Console writer If color is true, this writer uses Ansi codes to write log messages in color accordingly to its level.
NewFile creates and returns a pointer to a new File object along with any error that occurred.
NewNet creates and returns a pointer to a new Net object along with any error that occurred.
SetFormat sets the date/time message format of the default logger.
SetLevel sets the current level of the default logger.
SetLevelByName sets the current level of the default logger by level name: debug|info|warn|error|fatal (case ignored.) Only log messages with levels with the same or higher priorities than the current level will be emitted.
Warn emits a WARN level log message.

# Constants

Levels to filter log output.
Levels to filter log output.
Levels to filter log output.
Show date.
Show microseconds after FTIME.
Show milliseconds after FTIME.
Show nanoseconfs after TIME.
Show hour, minutes and seconds.
Levels to filter log output.
Levels to filter log output.

# Variables

Default logger and global mutex.

# Structs

Console is a console writer used for logging.
Event is a logger event passed from the logger to its writers.
File is a file writer used for logging.
Logger Object state structure.
Net is a network writer used for logging.

# Interfaces

LoggerWriter is the interface for all logger writers.