mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
Move default logging directory.
This commit is contained in:
parent
09b788fef6
commit
86e92941df
0
allianceauth/project_template/log/.gitkeep
Normal file
0
allianceauth/project_template/log/.gitkeep
Normal file
@ -1,2 +0,0 @@
|
||||
!.gitignore
|
||||
*
|
@ -172,7 +172,7 @@ ALLOWED_HOSTS = ['*']
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': str(os.path.join(PROJECT_DIR, 'alliance_auth.sqlite3')),
|
||||
'NAME': str(os.path.join(BASE_DIR, 'alliance_auth.sqlite3')),
|
||||
},
|
||||
}
|
||||
|
||||
@ -228,7 +228,7 @@ LOGGING = {
|
||||
'log_file': {
|
||||
'level': 'INFO', # edit this line to change logging level to file
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': os.path.join(PROJECT_DIR, 'log/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
|
||||
|
Loading…
x
Reference in New Issue
Block a user