Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19824 - syslog-ng defaults to put console messages on vt12 instead of /dev/console
Summary: syslog-ng defaults to put console messages on vt12 instead of /dev/console
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-23 05:54 UTC by Curtis Magyar
Modified: 2003-05-12 18:46 UTC (History)
1 user (show)

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


Attachments
proposed patch to configuration (syslog-ng.patch,475 bytes, patch)
2003-04-23 20:56 UTC, Chuck Short (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Magyar 2003-04-23 05:54:42 UTC
It took me some time to figure out there even was a vt12.  Syslog messages with
a priority of <1> should not be that hard to find.

Reproducible: Always
Steps to Reproduce:
1. printk("<1>Something\n");
2. search high and low for the output without typing dmesg


Actual Results:  
Tried every available syslogd.  Ranted in #gentoo for a while, then eventually
located /etc/syslog-ng/syslog-ng.conf on my own and filed this bug report

Expected Results:  
destination console_all { file("/dev/console"); };

The syslog daemon should output high priority messages to the console and syslog.

Not doing this is very frusterating, especially when switching back to console
from X seems to not work for some other strange reason, leaving my monitor
displaying a frequency out of range message.  Thus vt12 being impossible to find.
Comment 1 Matt Keadle 2003-04-23 19:13:22 UTC
Some nvidia drivers were buggy when switching from X back to console. Happen to have an nVidia card?
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-04-23 19:48:39 UTC
Curtis - can you talk more about why you think this should be a global change
and not just something you change on your own system?  Thanks.
Comment 3 Chuck Short (RETIRED) gentoo-dev 2003-04-23 20:56:43 UTC
Created attachment 11057 [details, diff]
proposed patch to configuration

I agree.

X-users can set up xconsole to view their console messages.

Here is the proposed patch to the syslog-ng.conf.

chuck
Comment 4 Curtis Magyar 2003-04-23 21:32:02 UTC
My reasons being the ability to intecept the console messages in X if so desired, as well as that being the expected behaviour of syslog.  See here for one example:
http://www.xml.com/ldd/chapter/book/ch02.html from O'Reillys Linux Device Driver book.

Further, every *nix I've worked with behaves this way.

Comment 5 Curtis Magyar 2003-04-24 10:22:58 UTC
On second thought, its probably not a good idea to dump *everything* to /dev/console.  Probably just LOG_EMERG, LOG_ALERT, LOG_CRIT, and possibly LOG_ERR.

Otherwise tty1 becomes a very messy place if the console alerts aren't intercepted.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2003-05-12 18:46:20 UTC
I've modified the default syslog-ng.conf with an uncommentable line to
address this.

The default behavior for syslog-ng on Gentoo Linux is to log to /dev/tty12.
If this isn't what you want, feel free to modify the config files locally.