Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeLogger ¶
func InitializeLogger(logLevel LogLevel)
InitializeLogger initializes the global logger with the specified log level
Types ¶
type CustomLogger ¶
type CustomLogger struct {
// contains filtered or unexported fields
}
CustomLogger represents the custom logger struct
var Logger *CustomLogger
GlobalLogger is a global instance of CustomLogger
func NewCustomLogger ¶
func NewCustomLogger(logLevel LogLevel) *CustomLogger
NewCustomLogger creates a new instance of CustomLogger with the specified log level
func (*CustomLogger) Error ¶
func (cl *CustomLogger) Error(message string)
Error logs an error message
func (*CustomLogger) Info ¶
func (cl *CustomLogger) Info(message string)
Info logs an informational message
func (*CustomLogger) Warning ¶
func (cl *CustomLogger) Warning(message string)
Warning logs a warning message
Click to show internal directories.
Click to hide internal directories.