LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Write logs from to virtual console to file (https://www.linuxquestions.org/questions/slackware-14/write-logs-from-to-virtual-console-to-file-4175486366/)

m1m 11-30-2013 08:53 AM

Write logs from to virtual console to file
 
I boot Slackware directly to runlevel 4 and XFCE. When I switch with ctrl+alt+1 to tty1 I can see many interesting logs from various X apps. However I can't find them later in /var/log/*. What can I do to persist them to some file?

tux_dude 11-30-2013 09:59 AM

You get output to tty1 after X starts? "Stating X11 session..." should be the last message displayed. Logs from X will be in you Xorg.log file. The boot up messages from tty1 can be displayed with dmesg. You can pipe the output to a file of your choosing.

m1m 11-30-2013 01:45 PM

I have logs in Xorg.log and on tty1 (mostly errors and warnings from gdk, gtk, flashplayer etc). Logs from console does not appear in Xorg.log.

WiseDraco 12-02-2013 01:44 AM

try somethings like

@reboot /dev/ttyS1 > console1.log

in your crontab ?

m1m 12-02-2013 04:02 AM

I can see X.org server starting on tty1. It prints some info about itself, then I'm switched to another console to login window.
X server logs some info to /var/log/Xorg.0.log, but not all of it. Various x-programs log their warning and error messages only to tty1, not to /var/log/Xorg.0.log
So how can I make X server log ALL messages to log file?


All times are GMT -5. The time now is 02:06 PM.