package
0.0.0-20241212132234-0076f9e1ccd7
Repository: https://github.com/basecomplextech/baselibrary.git
Documentation: pkg.go.dev

# Functions

Default returns a new logging service with the default config.
DefaultColorTheme returns the default terminal colors.
DefaultConfig returns a default configuration.
Init initializes and returns a new logging service, uses the default config when config is nil.
No description provided by the author
Load loads a logging config from a JSON/YAML file if it exists and returns a new logging service.
NewField returns a new field.
NewFields builds fields from key/value pairs.
NewPrefixLogger returns a new prefix logger.
NewRecord returns a new record with the current time.
ReadConfig reads a configuration from a JSON or YAML file.
Test returns a new test logging service.
TestLevelEnv returns a log level from the env variable TEST_LOG or the default test level.
TestLogger returns a new test logger.
TestLoggerDebug returns a new test logger with the debug level.
TestLoggerInfo returns a new test logger with the info level.
TestLoggerLevel returns a new test logger with the specified level.

# 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
No description provided by the author
TEST_LOG specifies an env variable that can be used to override the log level.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
TestLevel is the default log level for tests, you can change it in your modules for tests.

# Structs

ColorTheme specifies the terminal colors.
Config specifies the logging configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
Logging is a logging service.
PrefixLogger is a logger that adds a prefix to messages, including messages from child loggers.
No description provided by the author
Writer writes log records.

# Type aliases

No description provided by the author