LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   logging (https://www.linuxquestions.org/questions/programming-9/logging-678276/)

kk1 10-22-2008 06:27 AM

logging
 
I just want to know how logging works internally.

burschik 10-22-2008 06:32 AM

That is much like saying "I just want to know how the world works internally." Would you mind narrowing that down to one or two programming languages, or logging systems? Do you mean syslog, for example, klogd or log4j?

kk1 10-23-2008 12:16 AM

narrowing my question :)
 
i would like to know what exactly happens when we mean that system messages can be seen in /var/log/messages or /var/log/warn(in linux, to be specific)? What happens internally?

burschik 10-23-2008 02:57 AM

Okay, so that would generally be syslog. "man syslog" and "man syslogd" should tell you what you want to know.

nishamathew1980 11-02-2008 06:41 AM

In general - most well designed applications - having logging modules that write to specific log files. By doing so, in the event of an error or exception being encountered in your application - all a developer needs to do is look up the log files and he will be able to zero in on the root cause of the issue (and fix it!) within no time.

I hope this is the answer you were looking for.

Linux Archive


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