Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4943

Advanced users • Re: Colouring writes to 'dmesg'

$
0
0
echo "<int>Hello" | sudo tee /dev/kmsg
where int is parsed as {LOG_FACILITY,LOG_LEVEL} - lower 3 bits are level, bits 3-11 are facility.
dmesg applies its own colour formatting depending on the interpreted loglevel. int=7 produces something that looks like the default terminal text.

Statistics: Posted by jdb — Fri Nov 29, 2024 3:49 pm



Viewing all articles
Browse latest Browse all 4943

Trending Articles