Advertisement
Guest User

Untitled

a guest
Nov 7th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. settingsy.py
  2. 'handlers': {
  3. 'file': {
  4. 'level': 'DEBUG',
  5. 'class': 'logging.handlers.TimedRotatingFileHandler',
  6. 'filename': os.path.join(BASE_DIR, 'logs/user_creation.log'),
  7. 'formatter': 'verbose',
  8. 'when': 'midnight',
  9. 'backupCount': 30,
  10.  
  11. },
  12. 'user_info': {
  13. 'level': 'DEBUG',
  14. 'class': 'logging.handlers.TimedRotatingFileHandler',
  15. 'filename': os.path.join(BASE_DIR, 'logs/user_info.log'),
  16. 'formatter': 'verbose',
  17. 'when': 'midnight',
  18. 'backupCount': 30,
  19.  
  20. },
  21. 'console': {
  22. 'class': 'logging.StreamHandler',
  23. 'level': 'DEBUG',
  24. 'formatter': 'verbose',
  25. },
  26. },
  27. logs/
  28. [root@us1salx08667 logs]# ls -alth
  29. total 256K
  30. -rw-r--r-- 1 root apache 16K Nov 7 02:32 user_creation.log
  31. drwxrwsrwx 2 apache apache 176 Nov 7 02:31 .
  32. -rw-r--r-- 1 apache apache 11K Nov 7 02:31 user_creation.log.2019-11-06
  33. -rw-r--r-- 1 apache apache 48K Nov 5 22:30 user_creation.log.2019-11-05
  34. drwxr-xr-x 12 root root 269 Nov 5 08:26 ..
  35.  
  36. httpd .conf
  37. Alias /logs /ogry/DjangoUI/ogry_gui/logs
  38. <Directory "/ogry/DjangoUI/ogry_gui/logs">
  39. Options FollowSymLinks
  40. Order allow,deny
  41. Allow from all
  42. Require all granted
  43. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement