Skip to content

Commit 30e8e3b

Browse files
committed
Update readme
1 parent 9524670 commit 30e8e3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ except RuntimeError as exc:
9595
logger.error('The front fell off.\n' + tb)
9696
```
9797

98+
### Config options
99+
98100
For all the config options [see the docstring of `format()`](https://github.com/cknd/stackprinter/blob/master/stackprinter/__init__.py#L28-L149).
99101
The same config kwargs are accepted by `format()`, `show()` and `set_excepthook()`. They allow you to tweak the formatting, hide certain variables by name, skip variables in calls within certain files, and some other stuff.
100102

@@ -107,6 +109,8 @@ except RuntimeError as exc:
107109
truncate_vals=9001)
108110
```
109111

112+
### Integration with the standard `logging` module
113+
110114
It's also possible to integrate this neatly with standard logging calls through a bit of extra plumbing. The goal is to use the built in `logging` module's error handling method without explicitly importing `stackprinter` at the site of the logging call...
111115
```python
112116
try:

0 commit comments

Comments
 (0)