Skip to content

Commit 70d68cb

Browse files
quasipediaEvaSDK
authored andcommitted
Update README to proper use of FluentRecordFormatter
1 parent 8cd0068 commit 70d68cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ This client-library also has FluentHandler class for Python logging module.
6969

7070
logging.basicConfig(level=logging.INFO)
7171
l = logging.getLogger('fluent.test')
72-
l.addHandler(handler.FluentHandler('app.follow', host='host', port=24224))
72+
h = handler.FluentHandler('app.follow', host='host', port=24224)
73+
h.setFormatter(handler.FluentRecordFormatter())
74+
l.addHandler(h)
7375
l.info({
7476
'from': 'userA',
7577
'to': 'userB'

0 commit comments

Comments
 (0)