Skip to content

Commit

Permalink
small improvement to logging guide
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilva committed Nov 11, 2014
1 parent 2f03591 commit 8dd246c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/logging.md
Expand Up @@ -25,8 +25,13 @@ self.logger.critical("critical message")
```

You can configure the logging level so that only messages at and above that level are logged
(to learn how to change app configurations read [Configuration](configuration.md)). If the
app is run with a logging level of `ERROR` and the following lines are executed:
(to learn more read the [Configuration](configuration.md) guide):

```python
LEVEL=ERROR python hello.py
```

If the app is run with a logging level of `ERROR` and the following lines are executed:

```python
self.logger.info("info message")
Expand Down

0 comments on commit 8dd246c

Please sign in to comment.