File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ Fluent daemon must be lauched with the following configuration:
2222 port 24224
2323 </source>
2424
25+ <match app.**>
26+ type stdout
27+ </match>
28+
2529## Usage
2630
2731### Event-Based Interface
@@ -36,7 +40,7 @@ By default, the logger assumes fluent daemon is launched locally. You can also s
3640 sender.setup('app')
3741
3842 # for remote fluent
39- sender.setup('app', server ='host', port=' 24224' )
43+ sender.setup('app', host ='host', port=24224)
4044
4145Then, please create the events like this. This will send the event to fluent, with tag 'app.follow' and the attributes 'from' and 'to'.
4246
@@ -57,7 +61,7 @@ This client-library also has FluentHanler class for Python logging module.
5761
5862 logging.basicConfig(level=logging.INFO)
5963 l = logging.getLogger('fluent.test')
60- l.addHandler(handler.FluentHandler('app.follow'))
64+ l.addHandler(handler.FluentHandler('app.follow', host='host', port=24224 ))
6165 l.info({
6266 'from': 'userA',
6367 'to': 'userB'
You can’t perform that action at this time.
0 commit comments