This repository was archived by the owner on Jun 2, 2023. It is now read-only.
File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ linters:
31
31
# golangci.com configuration
32
32
# https://github.com/golangci/golangci/wiki/Configuration
33
33
service :
34
- golangci-lint-version : 1.13 .x # use fixed version to not introduce new linters unexpectedly
34
+ golangci-lint-version : 1.15 .x # use fixed version to not introduce new linters unexpectedly
Original file line number Diff line number Diff line change 1
1
package logutil
2
2
3
+ import "fmt"
4
+
3
5
type Func func (format string , args ... interface {})
4
6
7
+
8
+
9
+
5
10
type Log interface {
6
- Fatalf (format string , args ... interface {})
7
- Errorf (format string , args ... interface {})
8
- Warnf (format string , args ... interface {})
11
+ Fatalf (format string , args ... interface {})
12
+ Errorf (format string , args ... interface {})
13
+ Warnf (format string , args ... interface {})
9
14
Infof (format string , args ... interface {})
10
15
Debugf (key string , format string , args ... interface {})
11
16
@@ -15,6 +20,7 @@ type Log interface {
15
20
16
21
type LogLevel int
17
22
23
+ // setup levellign
18
24
const (
19
25
// debug message, write to debug logs only by logutils.Debug
20
26
LogLevelDebug LogLevel = 0
@@ -29,5 +35,6 @@ const (
29
35
30
36
// only not hidden from user errors: whole program failing, usually
31
37
// error logging happens in 1-2 places: in the "main" function.
32
- LogLevelError LogLevel = 3
38
+ LogLevelError LogLevel = 3
33
39
)
40
+
You can’t perform that action at this time.
0 commit comments