Merge pull request #292 from Adarnof/logfolder

Move default logfile location to log folder
This commit is contained in:
Mr McClain 2016-03-04 04:26:19 -06:00
commit a66df6b574
2 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,7 @@ LOGGING = {
'log_file': {
'level': 'INFO', # edit this line to change logging level to file
'class': 'logging.handlers.RotatingFileHandler',
'filename': os.path.join(BASE_DIR,'allianceauth.log'),
'filename': os.path.join(BASE_DIR,'log/allianceauth.log'),
'formatter': 'verbose',
'maxBytes': 1024*1024*5, # edit this line to change max log file size
'backupCount': 5, # edit this line to change number of log backups

2
log/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore