package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# Functions

CloseLogger is called on shutdown of application.
Debugf is a logging function that takes a sublogger, a format string along with optional arguments.
DebugfWithFields is a logging function that takes a sublogger, additional structured logging fields, a format string along with optional arguments.
Debugln is a logging function that takes a sublogger and an arbitrary number of interface{} arguments.
DebuglnWithFields is a logging function that takes a sublogger, additional structured logging fields and an arbitrary number of interface{} arguments.
Errorf is a logging function that takes a sublogger, a format string along with optional arguments.
ErrorfWithFields is a logging function that takes a sublogger, additional structured logging fields, a format string along with optional arguments.
Errorln is a logging function that takes a sublogger and an arbitrary number of interface{} arguments.
ErrorlnWithFields is a logging function that takes a sublogger, additional structured logging fields and an arbitrary number of interface{} arguments.
GenDefaultSettings return struct with known sane/working logger settings.
GetLogPath returns path of log file.
Infof is a logging function that takes a sublogger, a format string along with optional arguments.
InfofWithFields is a logging function that takes a sublogger, additional structured logging fields, a format string along with optional arguments.
Infoln is a logging function that takes a sublogger and an arbitrary number of interface{} arguments.
InfolnWithFields is a logging function that takes a sublogger, additional structured logging fields and an arbitrary number of interface{} arguments.
Level retrieves the current sublogger levels.
NewSubLogger allows for a new sub logger to be registered.
SetCustomLogHook sets a custom log hook function that allows the complete bypass of the library's internal logging system.
SetFileLoggingState can set file logging state if it is correctly configured or not.
SetGlobalLogConfig sets the global config with the supplied config.
SetLevel sets sublogger levels.
SetLogPath sets the log path for writing to file.
SetupGlobalLogger setup the global loggers with the default global config values.
SetupSubLoggers configure all sub loggers with provided configuration values.
Warnf is a logging function that takes a sublogger, a format string along with optional arguments.
WarnfWithFields is a logging function that takes a sublogger, additional structured logging fields, a format string along with optional arguments.
Warnln is a logging function that takes a sublogger and an arbitrary number of interface{} arguments.
WarnlnWithFields is a logging function that takes a sublogger, additional structured logging fields and an arbitrary number of interface{} arguments.

# Constants

DefaultMaxFileSize for logger rotation file.

# Variables

Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
ErrSubLoggerAlreadyRegistered Returned when a sublogger is registered multiple times.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.
Global vars related to the logger package.

# Structs

Config holds configuration settings loaded from bot config.
Levels flags for each sub logger type.
Logger each instance of logger settings.
Rotate struct for each instance of Rotate.
SubLogger defines a sub logger can be used externally for packages wanted to leverage GCT library logger features.
SubLoggerConfig holds sub logger configuration settings loaded from bot config.

# Type aliases

CustomLogHook is a function type for external log handling.
ExtraFields is a map of key value pairs that can be added to a structured log output.
Key is used for structured logging fields to ensure no collisions occur.