-
Notifications
You must be signed in to change notification settings - Fork 8
/
TIPS
30 lines (20 loc) · 893 Bytes
/
TIPS
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
1.) Use with syslog-ng (or other syslog maybe):
syslog-ng.conf (part):
# colorize destination
destination colorize { pipe("/dev/colorize"); };
log { source(src); filter(f_cnews); destination(colorize); };
log { source(src); filter(f_cother); destination(colorize); };
We need some system modifications (needs root privileges):
# First we make a fifo
mkfifo /dev/colorize
# Setting permissions
chmod 640 /dev/colorize && chown root.adm /dev/colorize
# And after all, we start colorize (user in adm group or root)
colorize < /dev/colorize > /dev/tty12
2.) Or the other solution (Mw3's tip):
syslog-ng.conf (part):
# My colorize
destination colorize { program("/usr/local/bin/colorize > /dev/tty12"); };
log { source(src); destination(colorize); }
And that's all... (please always check PATH of colorize!)
3.) You can find other tips (examples) under examples directory.