Skip to content

Commit

Permalink
W00t
Browse files Browse the repository at this point in the history
  • Loading branch information
nir0s committed Mar 12, 2018
1 parent 4154890 commit 4e2889a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ from wryte import Wryte

wryter = Wryte(name='app')
wryter.info('My Message')
2017-12-22T17:02:59.550920 - app - INFO - my message

# 2017-12-22T17:02:59.550920 - app - INFO - my message
...

```
Expand Down Expand Up @@ -185,10 +186,10 @@ wryter = Wryte(name='wryte', level='debug')
wryter.add_handler(handler=LogzioHandler('LOGZIO_TOKEN'), name='logzio', formatter='json', level='info')

wryter.info('My Message', {'key1': 'value2', 'key2': 'value2'}, 'key3=value3')
2017-12-22T17:02:59.550920 - app - INFO - my message
key1=value1,
key2=value2,
who=where
# 2017-12-22T17:02:59.550920 - app - INFO - my message
# key1=value1,
# key2=value2,
# who=where

...

Expand Down Expand Up @@ -220,10 +221,10 @@ For example:

```python
wryter.info('My Message', {'key1': 'value2', 'key2': 'value2'}, 'who=where')
2017-12-22T17:02:59.550920 - app - INFO - my message
key1=value1,
key2=value2,
who=where
# 2017-12-22T17:02:59.550920 - app - INFO - my message
# key1=value1,
# key2=value2,
# who=where

wryter.error('Logging kwargs', key='value') # kwargs
wryter.debug('Logging JSON strings', '{"key": "value"}') # JSON strings
Expand Down

0 comments on commit 4e2889a

Please sign in to comment.