-   Programming (
-   -   From where am i getting error messages to /var/log/messages? (

prabhuacsp 02-16-2005 05:55 AM

From where am i getting error messages to /var/log/messages?

I am currently working on the error generated by different daemons in linux like named, inetd etc... These processes are logging there messages in '/var/log/messages'. I am developing an application that generates regular error patterns for any specific process. For easier way I searched the 'named' src code but to my surprise there were no error messages there that matched the one that were in the 'messages' file. According to me they are generated by different processe that give service to the named process.

I am not able to trace the location of where the error messages are being generated. If you are aware of the details please inform me about it at the earliest.

waiting for reply
Prabhu & Deepak

pycoucou 02-16-2005 06:06 AM

I may say crap... But I think that the kernel is using messages, typically for booting...
Read the messages file, you would probably have clue of the generating process.

deiussum 02-16-2005 08:58 AM

Not sure if this answers your question, but I believe that most things that log to /var/log/messages do so via the syslog utility.

If I understood you right, you tried searching for the text being logged in the source code for one of the daemons and couldn't find it? This could be partly due to it being programmed with internationalization in mind. The actual text may not be hard coded, but may instead be retrieved from some language file.

itsme86 02-16-2005 08:59 AM

Check out something like man 3 syslog

EDIT: Beaten to it

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