LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-30-2013, 09:53 AM   #1
m1m
Member
 
Registered: Jan 2011
Posts: 45

Rep: Reputation: 0
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?
 
Old 11-30-2013, 10:59 AM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 226

Rep: Reputation: 33
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.
 
Old 11-30-2013, 02:45 PM   #3
m1m
Member
 
Registered: Jan 2011
Posts: 45

Original Poster
Rep: Reputation: 0
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.
 
Old 12-02-2013, 02:44 AM   #4
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 391

Rep: Reputation: 30
try somethings like

@reboot /dev/ttyS1 > console1.log

in your crontab ?
 
Old 12-02-2013, 05:02 AM   #5
m1m
Member
 
Registered: Jan 2011
Posts: 45

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Console network monitoring tool that logs to a file, not ncurses / to screen? rylan76 Linux - Software 3 07-05-2013 04:50 AM
Stop display in console but should write in log file cdhar Linux - Newbie 4 09-27-2012 10:45 AM
Stop display in console but should write in log file cdhar Linux - Newbie 3 09-27-2012 09:48 AM
[SOLVED] redirect system console to a virtual terminal or a file but after boot process agambier Linux - Kernel 1 03-08-2011 04:24 AM


All times are GMT -5. The time now is 09:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration