jazz icon indicating copy to clipboard operation
jazz copied to clipboard

more log message levels

Open naturallymitchell opened this issue 5 years ago • 10 comments

log-message-levels from: https://www.cisco.com/c/en/us/td/docs/routers/access/wireless/software/guide/SysMsgLogging.html

searched: log severity levels

log4jlevels syslog-event-levels-243x300 untitled1 severity-levels-logging node_js_logging_express_output-1464676759938 ic831263 add time between steps :)

naturallymitchell avatar Oct 13 '18 02:10 naturallymitchell

The logging support is provided by rust's log crate, it only supports the currently implemented levels

Arnaz87 avatar Oct 13 '18 04:10 Arnaz87

notice, alert, critical, emergency colors matching 3rd image

naturallymitchell avatar Oct 13 '18 22:10 naturallymitchell

remove log bindings and from lib.rs keep torchbear's own logger use log.lua in lighttouch-libs

naturallymitchell avatar Oct 13 '18 22:10 naturallymitchell

log.lua add levels ^^ ansicolors.lua add colors

underline action/rule/event name put event, action, rule prefix in [] brackets

naturallymitchell avatar Oct 13 '18 22:10 naturallymitchell

actions and rules should have log messages including their priorities

naturallymitchell avatar Oct 13 '18 22:10 naturallymitchell

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

?

naturallymitchell avatar Oct 14 '18 00:10 naturallymitchell

There are only 256 colors available in terminal. So I couldn't match every color perfectly

aleksanderwlodarczyk avatar Oct 14 '18 02:10 aleksanderwlodarczyk

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

aleksanderwlodarczyk avatar Oct 14 '18 02:10 aleksanderwlodarczyk

debug isn't working because we are using rlua and they had deleted it from rlua https://github.com/kyren/rlua/issues/52

aleksanderwlodarczyk avatar Oct 14 '18 11:10 aleksanderwlodarczyk

This issue was moved to foundpatterns/log.lua#2

naturallymitchell avatar Oct 27 '18 21:10 naturallymitchell