-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloggerNull.go
More file actions
49 lines (39 loc) · 1.38 KB
/
loggerNull.go
File metadata and controls
49 lines (39 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package standards
type LoggerNull struct {
}
// Emergency System is unusable
func (l *LoggerNull) Emergency(message string, context []any) error {
return l.Log(EMERGENCY, message, context)
}
// Alert Action must be taken immediately.
func (l *LoggerNull) Alert(message string, context []any) error {
return l.Log(ALERT, message, context)
}
// Critical Critical conditions.
func (l *LoggerNull) Critical(message string, context []any) error {
return l.Log(CRITICAL, message, context)
}
// Error Runtime errors that do not require immediate action but should typically
func (l *LoggerNull) Error(message string, context []any) error {
return l.Log(ERROR, message, context)
}
// Warning Exceptional occurrences that are not errors.
func (l *LoggerNull) Warning(message string, context []any) error {
return l.Log(WARNING, message, context)
}
// Notice Normal but significant events.
func (l *LoggerNull) Notice(message string, context []any) error {
return l.Log(NOTICE, message, context)
}
// Info Interesting events
func (l *LoggerNull) Info(message string, context []any) error {
return l.Log(INFO, message, context)
}
// Debug Detailed debug information.
func (l *LoggerNull) Debug(message string, context []any) error {
return l.Log(DEBUG, message, context)
}
// Log Logs with an arbitrary level.
func (l *LoggerNull) Log(level LogLevel, message string, context []any) error {
return nil
}