mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- Introduced Fatalf method in Logger interface for logging fatal messages with formatted content. - Implemented Fatalf in ServiceLogger to log fatal messages and exit the program, enhancing error handling capabilities.
20 lines
565 B
Go
20 lines
565 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{})
|
|
|
|
// Fatalf logs a formatted fatal message.
|
|
Fatalf(format string, args ...interface{})
|
|
}
|