Skip to content

Commit

Permalink
change my mind
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Aug 13, 2011
1 parent 05dcd2c commit 5ce3e3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
@@ -1,7 +1,7 @@
Next release
------------

- Change the exception logger name to ``pyramid_exclog``.
- ...

0.1 (2011-08-11)
----------------
Expand Down
14 changes: 7 additions & 7 deletions docs/index.rst
Expand Up @@ -54,10 +54,10 @@ instruct ``pyramid_exclog`` to ignore custom exception types by using the
``excview.ignore`` configuration setting, described below.

The Python logger name which ``pyramid_exclog`` logs to is named
``pyramid_exclog``. You can use the logging configuration in your Pyramid
application's ``.ini`` file to change the ``pyramid_exclog`` logger to be of
a specific kind, meaning you can log to a file, to syslog, or to email, and
other locations. For example, the following configuration sends
``exc_logger``. You can use the logging configuration in your Pyramid
application's ``.ini`` file to change the ``exc_logger`` logger to send to a
particular handler, meaning you can log to a file, to syslog, or to email,
and other locations. For example, the following configuration sends
``pyramid_exclog`` exception logging info to a file (in the current
directory) named ``exceptions.log``:

Expand All @@ -67,7 +67,7 @@ directory) named ``exceptions.log``:
# Begin logging configuration
[loggers]
keys = root, pyramid_exclog
keys = root, exc_logger
[handlers]
keys = console, exc_handler
Expand All @@ -79,10 +79,10 @@ directory) named ``exceptions.log``:
level = INFO
handlers = console
[logger_pyramid_exclog]
[logger_exc_logger]
level = ERROR
handlers = exc_handler
qualname = pyramid_exclog
qualname = exc_logger
[handler_console]
class = StreamHandler
Expand Down
2 changes: 1 addition & 1 deletion pyramid_exclog/__init__.py
Expand Up @@ -32,7 +32,7 @@ def exclog_tween(request, getLogger=logging.getLogger):
except ignored:
raise
except:
logger = getLogger('pyramid_exclog')
logger = getLogger('exc_logger')
logger.exception(request.url)
raise

Expand Down

0 comments on commit 5ce3e3f

Please sign in to comment.