8000 Merge pull request #3 from ksato9700/master · adamchainz/fluent-logger-python@f0c1cf2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0c1cf2

Browse files
committed
Merge pull request fluent#3 from ksato9700/master
Typos in the README file
2 parents 96935d5 + 058c8ed commit f0c1cf2

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.inf 4193 o({
6266
'from': 'userA',
6367
'to': 'userB'

0 commit comments

Comments
 (0)
0