Added catch-all logger and tweaked output formats. #787

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
4 participants

Having a default catch-all logger will prevent '[Sat Feb 23 12:17:35 2013] [error] No handlers could be found for logger " <name>"' Apache log errors. Updated the 'simple' and 'verbose' format to something more useful in my opinion:

Before log 'simple:
WARNING User 'support3' attempted to register with company 'KL Insight2' but it already exists

After log 'simple': 
WARNING accounts.forms forms.py@82: User 'support3' attempted to register with company 'KL Insight2' but it already exists

Before log 'verbose'
WARNING 2013-02-23 12:46:01,605 forms 22360 -1250423952 User 'support3' attempted to register with company 'KL Insight 2' but it already exists

After log 'verbose':
WARNING accounts.forms 2013-02-23 12:41:13,836 forms 22335 -1250423952 /srv/www/django/sample-site/src/django-project/accounts/forms.py@82: User 'support3' attempted to register with company 'KL Insight2' but it already exists

Thoughts?

claudep and others added some commits Feb 23, 2013

@claudep claudep Minor cleanups in templates test imports 335a060
@HonzaKral HonzaKral Merge pull request #781 from zsiciarz/ticket_19854
Fixed #19854 -- Added test runner option to skip Selenium tests
a05ab44
Daniel Sokolowski Added catch-all logger and tweaked output formats.
Having a default catch-all logger will prevent '[Sat Feb 23 12:17:35 2013] [error] No handlers could be found for logger "<__name__>"' errors. Updated the 'simple' and 'verbose' format to something more useful in my opinion:

Apache log 'simple': 
[Sat Feb 23 12:38:08 2013] [error] WARNING accounts.forms forms.py@82: User 'support3' attempted to register with company 'KL Insight2' but it already exists

Apache log 'verbose':
[Sat Feb 23 12:41:13 2013] [error] WARNING accounts.forms 2013-02-23 12:41:13,836 forms 22335 -1250423952 /srv/www/django/development.yupifoods.com/src/django-project/accounts/forms.py@82: User 'support3' attempted to register with company 'KL Insight2' but it already exists

Thoughts?
e8ced9b
Owner

timgraham commented May 31, 2013

A trac ticket would be helpful to get a discussion going.

Owner

timgraham commented Sep 18, 2013

Closing this in absence of an accepted trac ticket.

timgraham closed this Sep 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment