Tuesday, September 23, 2014

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

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 <cmawebsite@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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAB%2BAj0vCcGNx1_xbPJpHx01-zhn1DkZV5LBttM_w-oj4Y893EQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment