-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloggerCLI.go
More file actions
50 lines (39 loc) · 1.13 KB
/
loggerCLI.go
File metadata and controls
50 lines (39 loc) · 1.13 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
50
// Matheus Leonel Balduino
// Everywhere, under @mathbalduino
// @mathbalduino on GitHub
// @mathbalduino on Instagram
// @mathbalduino on Twitter
// Live at mathbalduino.com.br
// 2021-11-30 11:16 AM
package parser
import (
logger "github.com/mathbalduino/go-log"
"github.com/mathbalduino/go-log/loggerCLI"
)
// Exports some minimal LoggerCLI api, to avoid forcing the user
// of go-codegen to directly depend on go-log
type LoggerCLI = loggerCLI.LoggerCLI
const (
// LogTrace is a flag that if used will enable
// Trace logs
LogTrace = logger.LvlTrace
// LogDebug is a flag that if used will enable
// Debug logs
LogDebug = logger.LvlDebug
// LogInfo is a flag that if used will enable
// Info logs
LogInfo = logger.LvlInfo
// LogWarn is a flag that if used will enable
// Warn logs
LogWarn = logger.LvlWarn
// LogError is a flag that if used will enable
// Error logs
LogError = logger.LvlError
// LogFatal is a flag that if used will enable
// Fatal logs
LogFatal = logger.LvlFatal
// LogJSON set the logs to be parsed
// to JSON before printing it to the
// stdout (one per line)
LogJSON = uint64(1 << 6)
)