I have configured SysLogHandler for my django app but nothing is going into the log file

17 views
Skip to first unread message

Sumedh Sidhaye

unread,
Sep 22, 2014, 6:35:45 AM9/22/14
to django...@googlegroups.com
 Hi,

I have configured SysLogHandler as mentioned in this link.

I have put a absolute filename instead of '/dev/log' or '/var/log'

But it seems nothing is going into that file

Could you help me out!

Regards,
Sumedh

Collin Anderson

unread,
Sep 23, 2014, 8:51:26 AM9/23/14
to django...@googlegroups.com
What does your SysLogHandler look like?

Bill Freeman

unread,
Sep 23, 2014, 10:38:36 AM9/23/14
to django-users
This is from my logging config file from a non-django project, but the principals should be similar.

Before you look too hard here, are you sure that rsyslog.d (or equivalent) is running on the box (at which you have targeted the logger?
Is the facility on which you are logging configured (In my case, local5, see args below, is not configured by default and requires stuff in /etc/rsyslog.d, including configuring the socket '/dev/octopus', see args below.
[handler_logfile]
class=handlers.SysLogHandler
level=WARN
formatter=f_logfile
args=('/dev/octopus',handlers.SysLogHandler.LOG_LOCAL5)

On Tue, Sep 23, 2014 at 8:51 AM, Collin Anderson <cmawe...@gmail.com> wrote:
What does your SysLogHandler look like?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/def7f54c-48b8-4bcb-acc7-fe65751b8b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages