Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Example config markdown #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ Json outputs are provided by the JsonFormatter logging formatter. You can add th
**Please note: version 0.1.0 has changed the import structure, please update to the following example for proper importing**

```python
import logging
from pythonjsonlogger import jsonlogger
import logging
from pythonjsonlogger import jsonlogger

logger = logging.getLogger()
logger = logging.getLogger()

logHandler = logging.StreamHandler()
formatter = jsonlogger.JsonFormatter()
logHandler.setFormatter(formatter)
logger.addHandler(logHandler)
logHandler = logging.StreamHandler()
formatter = jsonlogger.JsonFormatter()
logHandler.setFormatter(formatter)
logger.addHandler(logHandler)
```

## Customizing fields
Expand Down