Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error logs an error message to the console with the file and line number. If exitOnError flag is set, the program will exit after logging the error.
func Info ¶
func Info(message string)
Info logs an information message to the console with the file and line number.
func InitLogger ¶
Initializes the loggers with their respective outputs and formats.
func SetExitOnError ¶
func SetExitOnError(exit bool)
SetExitOnError sets the behavior of program termination on error logs. If exit is true, the program will exit on error logs. If exit is false, the program will not exit on error logs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.