Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- settingsy.py
- 'handlers': {
- 'file': {
- 'level': 'DEBUG',
- 'class': 'logging.handlers.TimedRotatingFileHandler',
- 'filename': os.path.join(BASE_DIR, 'logs/user_creation.log'),
- 'formatter': 'verbose',
- 'when': 'midnight',
- 'backupCount': 30,
- },
- 'user_info': {
- 'level': 'DEBUG',
- 'class': 'logging.handlers.TimedRotatingFileHandler',
- 'filename': os.path.join(BASE_DIR, 'logs/user_info.log'),
- 'formatter': 'verbose',
- 'when': 'midnight',
- 'backupCount': 30,
- },
- 'console': {
- 'class': 'logging.StreamHandler',
- 'level': 'DEBUG',
- 'formatter': 'verbose',
- },
- },
- logs/
- [root@us1salx08667 logs]# ls -alth
- total 256K
- -rw-r--r-- 1 root apache 16K Nov 7 02:32 user_creation.log
- drwxrwsrwx 2 apache apache 176 Nov 7 02:31 .
- -rw-r--r-- 1 apache apache 11K Nov 7 02:31 user_creation.log.2019-11-06
- -rw-r--r-- 1 apache apache 48K Nov 5 22:30 user_creation.log.2019-11-05
- drwxr-xr-x 12 root root 269 Nov 5 08:26 ..
- httpd .conf
- Alias /logs /ogry/DjangoUI/ogry_gui/logs
- <Directory "/ogry/DjangoUI/ogry_gui/logs">
- Options FollowSymLinks
- Order allow,deny
- Allow from all
- Require all granted
- </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement