LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-01-2005, 09:10 PM   #1
kidskc
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Application Error Logging mechanism in Linux


Hello,

I am new to application development on Linux. I wrote a couple of daemons that talk to each other using UDP based on events generated by applications. Sometimes, they can run into some error conditions where they need to print a message and keep going.

Do we have any Standard Error logging mechanisms on Linux that i can use? Any API that I can use to write to a Standard file, may be like a syslog?

One way is that I keep open a file and write all the messages to it. But is this the only way? Can I make the two processes write to the same file/error-infrastructure?

Thanks,
Kidskc
 
Old 11-01-2005, 10:07 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Take a look at the logger command, and it's API, syslog:

man logger
man 3 syslog
 
Old 11-03-2005, 02:11 PM   #3
kidskc
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi maceMoneta,

Thanks for your Help.. This is the API I am looking for..

-Kidskc
 
  


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
creating a logging mechanism marri Programming 3 06-16-2005 10:31 AM
Autostart application when logging into X BlackCell Debian 10 03-09-2005 09:07 AM
firewire error - Error logging into SBP-2 device eddi.b Linux - Hardware 1 09-25-2004 09:37 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
sendmail auth mechanism oberon Linux - Software 0 05-20-2003 08:39 AM

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

All times are GMT -5. The time now is 11:20 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