logrus common format
Default log level is 4, meaning info, other level print detailed file location, line number, and the function name.
eg.
"log_dir":"/tmp",
"log_level":4
cat /tmp/test.log
2017-10-31 10:36:22 [info] Caught a signal: 12
- Fatal: 1
- Error: 2
- Warn: 3
- Info: 4
- Debug: 5
"log_dir":"/tmp",
"log_level":5
2017-10-31 11:58:13 [error][main.go:33][main] Error Level
2017-10-31 11:58:13 [warning][main.go:34][main] Warn Level
2017-10-31 11:58:13 [info] Caught a signal: 12
2017-10-31 11:58:13 [debug][main.go:36][main] Debug value: 12
The fastest way to get response is to send email to my mail:
Please refer to LICENSE file.