mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
log to arbitrary loggers
This commit is contained in:
parent
7bc8e8a3b3
commit
063111434d
1 changed files with 6 additions and 1 deletions
|
|
@ -31,10 +31,15 @@ try:
|
|||
except:
|
||||
COOLOFF_TIME = None
|
||||
|
||||
try:
|
||||
LOGGER = settings.AXES_LOGGER
|
||||
except:
|
||||
LOGGER = 'axes.watch_login'
|
||||
|
||||
def query2str(items):
|
||||
return '\n'.join(['%s=%s' % (k, v) for k,v in items])
|
||||
|
||||
log = logging.getLogger('axes.watch_login')
|
||||
log = logging.getLogger(LOGGER)
|
||||
log.info('BEGIN LOG')
|
||||
log.info('Using django-axes ' + axes.get_version())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue