1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 22:38:08 +00:00
Commit Graph

7 Commits

Author SHA1 Message Date
Hidden Z
489f1c9f15 web/lib/utils.py: add workaround for django
It helps to avoid multiple root loggers.
2010-11-02 18:34:25 +00:00
Hidden Z
4fa014add4 web/lib/utils.py: remove unneeded check_logger_options() 2010-11-01 21:22:20 +00:00
Hidden Z
c9c4e189e4 web/lib/utils.py: add validate_config()
New function for handle config validation.
http://www.voidspace.org.uk/python/articles/configobj.shtml#validation
2010-11-01 21:21:14 +00:00
Hidden Z
891472cfac web/lib/utils.py: add check_logger_options()
We need to check config options for logger in various scripts, and this
check is almost same, so move it to separate function.
2010-10-31 19:48:33 +00:00
Hidden Z
1cff3cedcb web/lib/utils.py: bugfix: take WatchedFileHandler properly 2010-10-31 18:38:27 +00:00
Hidden Z
e1be09b22f web/lib/utils.py: use WatchedFileHandler
Let admins safely rotate the logfiles with logrotate(8).
2010-10-30 21:31:30 +00:00
Hidden Z
85263b65cc web/lib/utils.py: a set of various utils for project
And firstly write get_logger() function. It provides common mechanism
for creating logger instances inside scripts.
2010-10-29 20:45:10 +00:00