mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
- Added Logger interface in core/interfaces/logger.go for standardized logging methods (Debugf, Infof, Warnf, Errorf). - Introduced ServiceLogger in core/utils/log.go, which prefixes log messages with the service name for better context. - Implemented logging methods in ServiceLogger to utilize the apex/log package for structured logging.
17 lines
477 B
Go
17 lines
477 B
Go
package interfaces
|
|
|
|
// Logger interface for reporting informational and warning messages.
|
|
type Logger interface {
|
|
// Debugf logs a formatted debugging message.
|
|
Debugf(format string, args ...interface{})
|
|
|
|
// Infof logs a formatted informational message.
|
|
Infof(format string, args ...interface{})
|
|
|
|
// Warnf logs a formatted warning message.
|
|
Warnf(format string, args ...interface{})
|
|
|
|
// Errorf logs a formatted error message.
|
|
Errorf(format string, args ...interface{})
|
|
}
|