Skip to content

Commit

Permalink
Resolves Issue #90
Browse files Browse the repository at this point in the history
  • Loading branch information
BJ Dierkes committed Jan 10, 2012
1 parent 3099872 commit d1410bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -22,6 +22,7 @@ is available online at:
Bug Fixes:

* :issue:`89` - Secondary controllers display under other controllers
* :issue:`90` - Logging to file doesn't expand '~'

Feature Enhancements:

Expand Down
2 changes: 2 additions & 0 deletions src/cement2/cement2/lib/ext_logging.py
@@ -1,5 +1,6 @@
"""Logging Framework Extension Library."""

import os
import logging
from cement2.core import exc, util, log

Expand Down Expand Up @@ -245,6 +246,7 @@ def _setup_file_log(self):
Add a file log handler.
"""
self.file = os.path.abspath(os.path.expanduser(self.file))
if self.rotate:
from logging.handlers import RotatingFileHandler
file_handler = RotatingFileHandler(
Expand Down

0 comments on commit d1410bc

Please sign in to comment.