derks/cement — Issue #91: Logging to file doesn't create basedir
Author: derks
Created: 2012-01-10 04:11:13+00:00
State: open
Labels: 2.x, bug

(dmirr)derks-macbook [drest] $ dmirr project create
Traceback (most recent call last):
File "/Users/wdierkes/env/dmirr/bin/dmirr", line 8, in
load_entry_point('dmirr.cli==1.9.1', 'console_scripts', 'dmirr')()
File "/Users/wdierkes/devel/dmirr/src/dmirr.cli/dmirr/cli/appmain.py", line 26, in main
app.setup()
File "/Users/wdierkes/devel/cement/src/cement2/cement2/core/foundation.py", line 143, in setup
self._setup_log_handler()
File "/Users/wdierkes/devel/cement/src/cement2/cement2/core/foundation.py", line 327, in _setup_log_handler
self.log.setup(self.config)
File "/Users/wdierkes/devel/cement/src/cement2/cement2/lib/ext_logging.py", line 197, in setup
self._setup_file_log()
File "/Users/wdierkes/devel/cement/src/cement2/cement2/lib/ext_logging.py", line 255, in _setup_file_log
backupCount=int(self.max_files),
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/handlers.py", line 118, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/handlers.py", line 65, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/__init__.py", line 893, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/logging/__init__.py", line 912, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/Users/wdierkes/.myapp/logs/myapp.log'