Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527622 - app-admin/syslog-ng - add USE=color
Summary: app-admin/syslog-ng - add USE=color
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-31 14:49 UTC by Nathan Shearer
Modified: 2014-11-09 10:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Shearer 2014-10-31 14:49:25 UTC
CCZE is a log colorizer, which I always use to colorize the syslog-ng output on tty12. After installing it I update the default /etc/syslog-ng/syslog-ng.conf with 1 line to colorize tty12:

Change this line:
destination console_all { file("/dev/tty12"); };

To this line:
destination console_all { program("ccze -r >> /dev/tty12"); };

I would like to request a new use flag added to syslog-ng (called "ccze") which will add ccze as a dependency and will modify the default syslog-ng.conf with the change above.

Perhaps one day this use flag could become part of some profiles and make Gentoo 10x better :)

Reproducible: Always

Steps to Reproduce:
1. USE=ccze emerge app-admin/syslog-ng
2. /etc/init.d/syslog-ng start
3. Look at tty12



The ccze use flag should only modify the default config file for syslog-ng and not update or merge changes into an existing one. This way we won't clobber any important changes that somebody made and Gentoo nobies can experience a wonderful log output on tty12 when they are struggling with common problems.
Comment 1 Nathan Shearer 2014-10-31 14:52:42 UTC
After some further thought, perhaps it would be better to call the use flag "color" instead. This way the coupling to ccze is less strict. Later improvements to ccze might require a name change or a different solution altogether, but that could be abstracted away with a "color" use flag instead of a "ccze" use flag.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-31 16:48:37 UTC
Why would you add a USE flag _just_ to change the default configuration? You can just change it whatever way you want and CONFIG_PROTECT should keep it that way.
Comment 3 Nathan Shearer 2014-10-31 17:21:07 UTC
I was thinking that new installations could choose to start with a configuration that has color support.

It's something that is trivial to setup, but probably never actually gets setup because of how trivial it is. Similar to a colorized shell. A lot of distros do not have ls colors enabled and when users are first exposed to it they wonder why it isn't setup and how they can also set it up.

I know that when I am building systems and solutions in general that I don't have unlimited time and the little pirks often get assigned a low enough priority that they never get implemented. This is one way to improve the Gentoo experience on new installations without any manual config changes. Perhaps one day the color use flag could be a default for syslog-ng, but I think a good starting point would be to have the use flag, but disabled by default -- then update the handbook when new users are first installing syslog-ng.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2014-11-09 10:02:29 UTC
The default config is meant to be a minimal working setup.  As Jeroen mentioned, once you have a local custom config it should be easy to maintain it moving forward between versions.  Adding complexity to the default config is undesirable.