Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogMessage ¶
type LogMessage struct {
// contains filtered or unexported fields
}
Log message wrapper containing data for one log entry
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
Constructor for logger. logLevel: sets the logging level (error, warn, info). logDebug: enables or disables debug information in logs. logQueueSize: sets the size of the log queue. returns pointer to the logger instance.
func (*Logger) Launch ¶
Starts async logger worker that processes log requests.
After a successful launch or shutdown, further calls to Launch will result in an error.
Returns an error if there is a failure while starting the worker.
func (*Logger) LogError ¶
Log an error message.
component: the component where the log is coming from. msg the log message.
func (*Logger) LogInfo ¶
Log an information message.
component: the component where the log is coming from. msg: the log message.