diff --git a/.gitignore b/.gitignore index 7d8ae96..63027b5 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ lib lib64 __pycache__ MANIFEST +.idea/ # Installer logs pip-log.txt diff --git a/readme.md b/readme.md index ba5cd1b..efc2900 100644 --- a/readme.md +++ b/readme.md @@ -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 -------