mirror of https://github.com/MISP/PyMISP
chg: Update readme for new logging system
parent
f54a029e2a
commit
e6ab90012d
17
README.md
17
README.md
|
@ -50,6 +50,23 @@ cd examples
|
||||||
python3 last.py -l 10
|
python3 last.py -l 10
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Debugging
|
||||||
|
|
||||||
|
You have two options there:
|
||||||
|
|
||||||
|
1. Pass `debug=True` to `PyMISP` and it will enable logging.DEBUG to stderr on the whole module
|
||||||
|
|
||||||
|
2. Use the python logging module directly:
|
||||||
|
|
||||||
|
```python
|
||||||
|
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger('pymisp')
|
||||||
|
|
||||||
|
# Configure it as you whish, for example, enable DEBUG mode:
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
[PyMISP API documentation is available](https://media.readthedocs.org/pdf/pymisp/master/pymisp.pdf).
|
[PyMISP API documentation is available](https://media.readthedocs.org/pdf/pymisp/master/pymisp.pdf).
|
||||||
|
|
Loading…
Reference in New Issue