LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08:53 AM   #1
m1m
Member
 
Registered: Jan 2011
Posts: 55

Rep: Reputation: 1
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, 09:59 AM   #2
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
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, 01:45 PM   #3
m1m
Member
 
Registered: Jan 2011
Posts: 55

Original Poster
Rep: Reputation: 1
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, 01:44 AM   #4
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
try somethings like

@reboot /dev/ttyS1 > console1.log

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

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



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 03:50 AM
Stop display in console but should write in log file cdhar Linux - Newbie 4 09-27-2012 09:45 AM
Stop display in console but should write in log file cdhar Linux - Newbie 3 09-27-2012 08:48 AM
[SOLVED] redirect system console to a virtual terminal or a file but after boot process agambier Linux - Kernel 1 03-08-2011 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration