[PLUG] How is it logged...

Michael C. Robinson michael at robinson-west.com
Fri Nov 21 12:12:02 UTC 2003


> syslog messages are sent to syslog, and then resent.  There does seem to
> be some errors from low level process that get blasted to the screen. 
> Log root into the console on port 1 ([CTRL] ALT F1) and leave it idle. 
> If messages appear there it is likely syslog.  I seem to vaguely
> remember that there syslog defaults to consoles when it cannot properly
> report certain critical errors (try having a broken syslogd, you find
> this stuff out).  I forgot the criteria for this though.
> 
> 
> stderr is sent from the running program.  This sound like what you are
> seeing.
> 
> To test run in a bash shell,
>   command > file.stdout 2>file.sterr &
> 
> then tail/less the files.  "2>" redirects stderr.  ">" is the same as
> "1>" I think, but there is no need to use it.  "2>&1" redirects stderr
> to stdout, which can be useful.
> 
> The standard kernel make command from a while ago was
> 
>   make bzImage > make.log 2>&1
>   less make.log
>      hit 'F'
> 
> 
> Note this is for bash only, other shells behave differently.
> 

No not a program, the osst driver dumped errors to the console
instead of a log file.  The same thing at least used to 
happen sometimes with floppy drives too.  It would be nice 
if the error logging of various drivers could be linked to 
user defined facilities under menuconfig so that stuff can 
be broken out more without extra processing.  Just
getting driver messages including that error 
recovery is occuring  off the console I'm using 
is what I'm after.  Maybe I can redirect stderr
next time I run taper.  There are lines in osst.c
that say kern_xxx suggesting the logging is supposed
to go to syslog.  Why then does it go to the 
console when a bad sot in a tape is found?  If var 
were not mounted I'd understand, but this isn't the 
case.  If it's the driver writer's fault that's,
very annoying programming style to have a driver
print to stderr.

> 
> -- 
> Zot O'Connor
> 
> http://www.ZotConsulting.com
> http://www.WhiteKnightHackers.com
> 
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
> 
-- 
-----------------------------
Michael C. Robinson

Associates of General Studies 
PCC March 2003.
-----------------------------




More information about the PLUG mailing list