mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- Added Debug, Info, Warn, Error, and Fatal methods to the Logger interface for comprehensive logging capabilities. - Implemented corresponding methods in ServiceLogger to facilitate structured logging with service context. - Enhanced the logging functionality to support various log levels, improving error tracking and debugging.
35 lines
857 B
Go
35 lines
857 B
Go
package interfaces
|
|
|
|
// Logger interface for reporting informational and warning messages.
|
|
type Logger interface {
|
|
// Debug logs a debugging message.
|
|
Debug(message string)
|
|
|
|
// Info logs an informational message.
|
|
Info(message string)
|
|
|
|
// Warn logs a warning message.
|
|
Warn(message string)
|
|
|
|
// Error logs an error message.
|
|
Error(message string)
|
|
|
|
// Fatal logs a fatal message.
|
|
Fatal(message string)
|
|
|
|
// 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{})
|
|
|
|
// Fatalf logs a formatted fatal message.
|
|
Fatalf(format string, args ...interface{})
|
|
}
|