LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2007, 04:36 AM   #1
arthik_tn
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Rep: Reputation: 0
Question java with syslog


Hi,

I want to know whether from java is it possible to call the syslog utility of linux to log messages.

thanks
 
Old 11-16-2007, 05:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
yes it's totally possible, just google for "java syslog" and you'll see a number of client apis
 
Old 11-16-2007, 06:24 AM   #3
arthik_tn
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi acid_kewpie,

Thanks for your reply but all the api's are based on syslog utilities and I need to used the syslog.conf and linux syslog in my java program and I shell script we can use logger to log the message and If it is application the same logger can be used?
 
Old 11-16-2007, 06:38 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
you app has no interest in syslog.conf syslogd on your system is just an implementation of the syslog standard, and your app needs to talk protocol and standards, not to a specfic program. As above, there are very clear libraries to do what you need. you should have already found yourself on this page already http://protomatter.sourceforge.net/l...og/Syslog.html for example
 
Old 11-16-2007, 08:48 AM   #5
arthik_tn
LQ Newbie
 
Registered: Nov 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thanks for your reply. My requirement is , I need to send all the messages to the syslogd server which is running in the linux m/c .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Java with syslog arthik_tn Linux - Newbie 1 11-16-2007 05:15 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 07:21 PM
syslog-ng DotHQ Linux - Software 1 03-31-2006 02:41 PM
syslog bulliver Linux - General 4 04-22-2003 04:45 PM
syslog buttnutt Linux - General 1 06-11-2002 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration