Skip to content

Commit 058c8ed

Browse files
committed
fixed issues in the examples
1 parent 96935d5 commit 058c8ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

4145
Then, 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'

0 commit comments

Comments
 (0)