LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2011, 10:31 AM   #1
heeman
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Logging a to /var/log/messages using python


I use python 2.6 logger to log to a file.
But now I want it to be part of /var/log/messages.

Any tips/pointer/guide on what to do?
Thanks.
 
Old 03-25-2011, 02:10 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
http://docs.python.org/library/syslog.html
 
  


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
segfaults are not logging into /var/log/messages ravikumarv Linux - General 1 12-10-2010 09:20 AM
/var/adm/messages vs /var/log/messages gomes1333 Linux - General 1 04-06-2010 05:08 AM
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 02:08 PM
Logging to /var/log/messages paddyjoy Programming 5 12-19-2005 07:01 AM
What is this ? Mail Python in /var/log/messages knowsnothing Mandriva 1 12-01-2004 12:04 PM


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