LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2008, 06:27 AM   #1
kk1
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Rep: Reputation: 0
logging


I just want to know how logging works internally.
 
Old 10-22-2008, 06:32 AM   #2
burschik
Member
 
Registered: Jul 2008
Posts: 159

Rep: Reputation: 31
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?
 
Old 10-23-2008, 12:16 AM   #3
kk1
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 10-23-2008, 02:57 AM   #4
burschik
Member
 
Registered: Jul 2008
Posts: 159

Rep: Reputation: 31
Okay, so that would generally be syslog. "man syslog" and "man syslogd" should tell you what you want to know.
 
Old 11-02-2008, 06:41 AM   #5
nishamathew1980
Member
 
Registered: Oct 2008
Posts: 37

Rep: Reputation: 16
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

Last edited by nishamathew1980; 11-09-2008 at 04:52 AM.
 
  


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
Logging in and logging out of a server in a script frankie_DJ Linux - Newbie 4 01-27-2007 11:03 PM
Logging? TL_CLD Slackware 6 09-28-2006 10:02 AM
CLI -- Logging Out and Logging In StyngerSmash Linux - Newbie 1 09-05-2006 04:23 AM
logging in im1crazyassmofo Linux - General 1 03-03-2003 09:53 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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