Skip to content

Commit

Permalink
Fix error in demo script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirade committed Dec 29, 2022
1 parent 5a35314 commit e33972a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ Python logging handler to load data into AWS Kinesis Delivery Stream

### Demo Script
```
import logging.config
CONFIG = {
'version': 1,
'root': {
'level': 'DEBUG',
'handlers': ['console'],
},
'formatters': {
'verbose': {
'format': '%(asctime)s %(name)s %(levelname)s %(message)s %(pathname)s %(lineno)d %(funcName)s %(process)d %(processName)s %(thread)d %(threadName)s'
},
'json': {
'class': 'pythonjsonlogger.jsonlogger.JsonFormatter',
'format': '%(asctime)s %(name)s %(levelname)s %(message)s %(pathname)s %(lineno)d %(funcName)s %(process)d %(processName)s %(thread)d %(threadName)s'
Expand Down Expand Up @@ -56,6 +61,7 @@ def test():
except NameError as e:
logger.error(e, exc_info=True)
if __name__ == '__main__':
test()
```

0 comments on commit e33972a

Please sign in to comment.