File tree 1 file changed +6
-2
lines changed 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:
22
22
port 24224
23
23
</source>
24
24
25
+ <match app.**>
26
+ type stdout
27
+ </match>
28
+
25
29
## Usage
26
30
27
31
### Event-Based Interface
@@ -36,7 +40,7 @@ By default, the logger assumes fluent daemon is launched locally. You can also s
36
40
sender.setup('app')
37
41
38
42
# for remote fluent
39
- sender.setup('app', server ='host', port=' 24224' )
43
+ sender.setup('app', host ='host', port=24224)
40
44
41
45
Then, please create the events like this. This will send the event to fluent, with tag 'app.follow' and the attributes 'from' and 'to'.
42
46
@@ -57,7 +61,7 @@ This client-library also has FluentHanler class for Python logging module.
57
61
58
62
logging.basicConfig(level=logging.INFO)
59
63
l = logging.getLogger('fluent.test')
60
- l.addHandler(handler.FluentHandler('app.follow'))
64
+ l.addHandler(handler.FluentHandler('app.follow', host='host', port=24224 ))
61
65
l.info({
62
66
'from': 'userA',
63
67
'to': 'userB'
You can’t perform that action at this time.
0 commit comments