Re: Is Django logging multi-process safe?

2019-02-26 Thread Dan Davis
So, there are some issues in managing the files. It is not very 12-factor to have the application worry about such things. The issues with using a FileHandler or TimedRotatingFileHandler from multiple processes/kernel threads are less important, but still exist. If a file is append-only, the

Re: Is Django logging multi-process safe?

2018-12-22 Thread Jason
my company uses logentries for log aggregation and search, but an ELK-based stack is indeed a very viable option for handling logs across multiple servers and containers. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Is Django logging multi-process safe?

2018-12-22 Thread PASCUAL Eric
fering the appropriate tools for exploiting them. Regards Eric From: django-users@googlegroups.com on behalf of Dan Davis Sent: Friday, December 21, 2018 11:00:17 PM To: django-users@googlegroups.com Subject: Re: Is Django logging multi-process safe? Eric,

Re: Is Django logging multi-process safe?

2018-12-21 Thread Dan Davis
u > want to. > > > Regards > > > Eric > > > -- > *From:* django-users@googlegroups.com on > behalf of Dan Davis > *Sent:* Friday, December 21, 2018 5:55:35 PM > *To:* Django users > *Subject:* Re: Is Django logging multi-process safe? > > Looks like I

Re: Is Django logging multi-process safe?

2018-12-21 Thread PASCUAL Eric
gards Eric From: django-users@googlegroups.com on behalf of Dan Davis Sent: Friday, December 21, 2018 5:55:35 PM To: Django users Subject: Re: Is Django logging multi-process safe? Looks like I should use a WatchedFileHandler and then have logrotate do the lo

Re: Is Django logging multi-process safe?

2018-12-21 Thread Dan Davis
Looks like I should use a WatchedFileHandler and then have logrotate do the logging. If the file pointer is moved by another process, then it will work. Does gunicorn patch this for me? Will I be better off using syslog or something? On Friday, December 21, 2018 at 11:51:16 AM UTC-5, Dan Da

Is Django logging multi-process safe?

2018-12-21 Thread Dan Davis
I just came across this: https://docs.python.org/3.5/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes This suggests that log messages sent to a StreamHandler will be processed properly, but log messages sent to a standard logging.handlers.TimedRotatingFileHandler ar

Re: use django logging from outside

2016-02-15 Thread Det S. Pillner
> > >> > I work on a django project. I use very heavy logging in this project. >> Some parts of code needs to start over a cron job outside of the django >> project. In this - I call it modules - I try to use my existing django >> logging config. Code execution

Re: use django logging from outside

2016-02-11 Thread Det S. Pillner
ode needs to start over a cron job outside of the django > project. In this - I call it modules - I try to use my existing django > logging config. Code execution displays no errors bud there are no logging > entries. > > > > Can somebody help to fix my problem? > > &

Re: use django logging from outside

2016-01-23 Thread James Schneider
On Jan 20, 2016 2:35 AM, "Det S. Pillner" wrote: > > Hi all, > > I work on a django project. I use very heavy logging in this project. Some parts of code needs to start over a cron job outside of the django project. In this - I call it modules - I try to use my existing

use django logging from outside

2016-01-20 Thread Det S. Pillner
Hi all, I work on a django project. I use very heavy logging in this project. Some parts of code needs to start over a cron job outside of the django project. In this - I call it modules - I try to use my existing django logging config. Code execution displays no errors bud there are no

A problem with django logging

2016-01-04 Thread 朴诚
Hi, I encountered a django logging problem which can not be solved for several hours. My django logging setting is: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'standard': { 'form

Re: Django Logging Send Email on Openshift

2015-04-06 Thread Steve Pousty
It's not a good idea to send emails directly from OpenShift since we are on AWS ip ranges. You should use a service like SendGrid or MailGun. On Monday, April 6, 2015 at 10:31:11 AM UTC-7, Guilherme Leal wrote: > > Is anybody using OpenShift for Django hosting? I'm having trouble > configuring t

Django Logging Send Email on Openshift

2015-04-06 Thread Guilherme Leal
Is anybody using OpenShift for Django hosting? I'm having trouble configuring the Logging engine to send emails on errors and could use some help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Django Logging database queries

2014-03-19 Thread Venkatraman S
INSERT/UPDATE/DELETE/SELECT cover almost all types that will be used. What else is getting logged? And what do you mean by 'FAILED' Select queries? Do you mean Timed-out ones? On Thu, Mar 13, 2014 at 12:32 PM, Anju SB wrote: > Dear All, > > I am a newbie in Django programming and developing a

Django Logging database queries

2014-03-13 Thread Anju SB
Dear All, I am a newbie in Django programming and developing a web application using django 1.3 and postgresql. I want to log insert, update, delete and failed select queries in my daily log file. I configured 'django.db.backends' in the logger of the Logging dict in Settings.py. But I get

TimedThrottleFilter: Django logging filter to throttle logging

2011-10-05 Thread Michael Manfre
I recently encountered the problem of underlying IO issues triggering gigs of repeated logs that were compounded by the extra logging. To help improve the signal to noise ratio of the logs and prevent the downward spiral of IO issues causing logging that cause more IO issues, I created a logging fi

Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-09 Thread Edwin
I've had help from SO: http://stackoverflow.com/questions/5249265/strange-behaviour-in-django-logging-django-1-3-rc/5250829#5250829 The solution is simply to explicitly call self.format(record) on my emit() method under DatabaseHandler. Hope this helps whoever face a similar problem. -

Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-07 Thread Edwin
Sorry I wasn't clear enough. Here's the stack trace: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 89. response = middleware_method(request) File "/home/user/projects/django/../django/common/middleware.py" in process_re

Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-05 Thread Russell Keith-Magee
On Sat, Mar 5, 2011 at 10:41 AM, Edwin wrote: > I'm getting a strange behaviour when setting up logging. Here's my > logging configuration: > > LOGGING = > { >    'version': 1, >    'disable_existing_loggers': True, >    'formatters': { >        'admin_configuration': { >            'format': '%(a

Weird behaviour in Django logging (Django 1.3 RC)

2011-03-04 Thread Edwin
I'm getting a strange behaviour when setting up logging. Here's my logging configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'admin_configuration': { 'format': '%(asctime)s %(levelname)s %(category)s % (sub_category)s %(type_

Django logging database changes

2010-10-10 Thread David
Hello I have a very simple app that I am writing that simply stores form data to a database. I can then scroll through and edit data stored in the database. I was wondering if there is a built in function that would enable me to log all data update/changes like the django admin history log does.

Re: Django logging

2010-06-23 Thread Andy McKay
On 2010-06-23, at 8:48 AM, thusjanthan wrote: > I am creating a new django framework and figured django would come > with its own logging feature. I found this one that Fraser wrote but > is no longer in development (http://code.google.com/p/django-logging/ > wiki/Overview) Can anyon

Re: Django logging

2010-06-23 Thread Russell Keith-Magee
;> is no longer in development (http://code.google.com/p/django-logging/ >> wiki/Overview) > > That's wasn't really for logging in the operational server system logs > sense, it was for showing log messages arising in the request-response cycle > in the html returned

Re: Django logging

2010-06-23 Thread David De La Harpe Golden
On 23/06/10 16:48, thusjanthan wrote: Hi, I am creating a new django framework and figured django would come with its own logging feature. I found this one that Fraser wrote but is no longer in development (http://code.google.com/p/django-logging/ wiki/Overview) That's wasn't

Django logging

2010-06-23 Thread thusjanthan
Hi, I am creating a new django framework and figured django would come with its own logging feature. I found this one that Fraser wrote but is no longer in development (http://code.google.com/p/django-logging/ wiki/Overview) Can anyone suggest me a django logging project to log debug/error

Django-logging in production mode

2009-09-09 Thread eli
Hi, It's a good idea to logging errors, notices etc using python module logging in app under production mode (Nginx)? I know about for ex: sending error:500 emails to admins etc, but sometimes I want to log errors and lets app go on. (I'm talking about logging errors to the file, and later send

Re: django-logging and python logging together

2009-07-16 Thread Rodrigue
Am I the only one thinking about using both django-logging and the logging module from the standard library at the same time? I find it useful to not have to dig into a log file while I'm developing or debugging, but I still want to have my logs written to disk on production though. Is th

django-logging and python logging together

2009-07-13 Thread Rodrigue
Hi all, I have been using django-logging (http://code.google.com/p/django- logging/wiki/Overview) and found it very useful. However, I configured python logging for my project and django-logging does not display logging messages anymore. Here is the logging.conf I am using: [loggers] keys

Re: django-logging

2009-06-19 Thread Rama Vadakattu
and also initialized the > > logging (means telling  various loggers ,handlers,formatters) > >    whenever you want use logging in any view or models do the below > >  --- > > > import logging > > import logging.config > > > mlogger = logging

Re: django-logging

2009-06-19 Thread eric.frederich
ule name it chooses > the  logger which contains name as prefix if none it chooses root > > #now use this mlogger.debug to print message at debug level and > mlogger.info to print messages at info level > mlogger.debug("completed the question paper at present reviewing it") &g

Re: django-logging

2009-06-19 Thread Rama Vadakattu
print messages at info level mlogger.debug("completed the question paper at present reviewing it") Hope the above is clear for you to start... --rama vadakattu . On Jun 18, 11:20 pm, "eric.frederich" wrote: > I need some a

django-logging

2009-06-18 Thread eric.frederich
I need some advice on using the python logging module with django- logging. I have djangologging installed and working. I read the documentation and am trying to figure out how I can best take advantage of the built in logging module. The djangologging docs mention adding handlers and other

Django Logging

2009-05-09 Thread Raashid Malik
Hello, I m using django-logging module and able to see log messages at the bottom of browser. I m also able to create a file. But what u want is that i should be able to create an HTML file and all the logs should be appended. -- Thanks, Raashid Malik

Re: Django-Logging

2009-05-08 Thread Emily Rodgers
rg/snippets/16/ > > > On May 8, 3:39 pm, Raashid Malik wrote: > > > Hello, > > > >    Please guid me to some good resource on django logging. > > > > Thanks, > > > Raashid Malik > > -- > Thanks, > Raashid Malik --~--~-~--~~---

Re: Django-Logging

2009-05-08 Thread Raashid Malik
nippet: > > http://www.djangosnippets.org/snippets/16/ > > On May 8, 3:39 pm, Raashid Malik wrote: > > Hello, > > > >Please guid me to some good resource on django logging. > > > > Thanks, > > Raashid Malik > > > -- Thanks, Raashid Malik --~

Re: Django-Logging

2009-05-08 Thread K*K
Actually I always prefer enable DEBUG_PROPAGATE_EXCEPTIONS = True in settings then use print to output log for debug. On May 8, 3:39 pm, Raashid Malik wrote: > Hello, > >    Please guid me to some good resource on django logging. > > Thanks,

Re: Django-Logging

2009-05-08 Thread K*K
You can have try this snippet: http://www.djangosnippets.org/snippets/16/ On May 8, 3:39 pm, Raashid Malik wrote: > Hello, > >    Please guid me to some good resource on django logging. > > Thanks, > Raashid Malik --~--~-~--~~~---~--~~ You rec

Django-Logging

2009-05-08 Thread Raashid Malik
Hello, Please guid me to some good resource on django logging. Thanks, Raashid Malik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Django-Logging Problem..

2009-03-26 Thread caliman
do you have INTERNAL_IPS set in yout settings file? if your on localhost you probably need: INTERNAL_IPS = ('127.0.0.1',) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Django-Logging Problem..

2009-03-07 Thread Harish
Hi Everybody... I am trying out the Django-logging Middleware for my application. I am using Ubuntu as an OS, with Python Version 2.5 and Django Version 0.97-pre-SVN-7049. I just tried the way they specified in the following link http://code.google.com/p/django-logging/wiki/Overview This is

FYI: django-logging problem with latest dev version of Django (patch info included)

2007-07-26 Thread keithb
Using the latest Django revision (anything after the Unicode branch merge), if a view returns a page with any non-ASCII characters, you'll get an error in django-logging when it tries to rewrite the page. For more info and a patch, check out the django-logging ticket: http://code.google.

Re: Django logging facilities

2007-06-19 Thread Ben Godfrey
I used logging for a while but messages were dropped too often. I'm not entirely sure why, as logging is reputedly thread safe. Instead I switched to syslog, which is more reliable, but truncates log messages. Not so useful for later inspection of stack traces. I have not looked at configuring Ap

Django logging facilities

2007-06-19 Thread Teófilo Ruiz
umentation on how to use the 'logging' Python module with Django? I'm been taking a look at 'django-logging'[1], which is a MiddleWare supposed to be used only when in DEBUG mode and not in "production" mode. Do you guys recommend using it for normal "produ