Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ lib
lib64
__pycache__
MANIFEST
.idea/

# Installer logs
pip-log.txt
Expand Down
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ Extra Data

This would be useful if you are using a logging handler that ships the `logging.LogRecord` as JSON to some service like a document oriented data store, Elasticsearch, etc.

You also could pass extra params via `.emit` call like
```
trace = LogTrace(logger=logger)
trace.emit('message', extra={'key': 'value'})
```

Testing
-------

Expand Down