jazz
jazz copied to clipboard
more log message levels
from: https://www.cisco.com/c/en/us/td/docs/routers/access/wireless/software/guide/SysMsgLogging.html
searched: log severity levels
add time between steps :)
The logging support is provided by rust's log crate, it only supports the currently implemented levels
notice, alert, critical, emergency colors matching 3rd image
remove log bindings and from lib.rs keep torchbear's own logger use log.lua in lighttouch-libs
log.lua add levels ^^ ansicolors.lua add colors
underline action/rule/event name put event, action, rule prefix in [] brackets
actions and rules should have log messages including their priorities
fwiw,
EMERGENCY
HTML code: #FC3C2F RGB code: R: 252 G: 60 B: 47 HSV: 3.8° 81.35% 98.82%
ALERT
HTML code: #F4712E RGB code: R: 244 G: 113 B: 46 HSV: 20.3° 81.15% 95.69%
CRITICAL
HTML code: | #F9A544 RGB code: | R: 249 G: 165 B: 68 HSV: | 32.15° 72.69% 97.65%
ERROR
HTML code: | #F9CE45 RGB code: | R: 249 G: 206 B: 69 HSV: | 45.67° 72.29% 97.65%
WARNING
HTML code: | #ECFA44 RGB code: | R: 236 G: 250 B: 68 HSV: | 64.62° 72.8% 98.04%
NOTICE
HTML code: | #B0DFFF RGB code: | R: 176 G: 223 B: 255 HSV: | 204.3° 30.98% 100%
INFO
HTML code: | #6DCEFA RGB code: | R: 109 G: 206 B: 250 HSV: | 198.72° 56.4% 98.04%
DEBUG
HTML code: | #2FB9FC RGB code: | R: 47 G: 185 B: 252 HSV: | 199.61° 81.35% 98.82%
TRACE
?
There are only 256 colors available in terminal. So I couldn't match every color perfectly
There is strange 'bug' that we cannot use functions from Lua debug library so log.lua can't print messages with info about file and number of line
debug isn't working because we are using rlua and they had deleted it from rlua https://github.com/kyren/rlua/issues/52
This issue was moved to foundpatterns/log.lua#2