Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9216083

Browse filesBrowse files
committed
Checking in changes prior to tagging of version 0.19.
Changelog diff is: diff --git a/Changes b/Changes index fa200d3..c704ad5 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,10 @@ Revision history for Fluent::Logger {{$NEXT}} +0.19 2016-12-21T08:44:55Z + * Added fluent-logger-ruby compatible buffer_overflow_handler (#17 tokuhirom) + * Added truncate_buffer_at_overflow option (#18) + 0.18 2016-06-02T05:52:34Z * Support Sub-second time (for Fluentd 0.14 or later)
1 parent fffbaa7 commit 9216083
Copy full SHA for 9216083

File tree

Expand file treeCollapse file tree

4 files changed

+22
-10
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+22
-10
lines changed

‎Changes

Copy file name to clipboardExpand all lines: Changes
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ Revision history for Fluent::Logger
22

33
{{$NEXT}}
44

5+
0.19 2016-12-21T08:44:55Z
6+
* Added fluent-logger-ruby compatible buffer_overflow_handler (#17 tokuhirom)
7+
* Added truncate_buffer_at_overflow option (#18)
8+
59
0.18 2016-06-02T05:52:34Z
610
* Support Sub-second time (for Fluentd 0.14 or later)
711

‎META.json

Copy file name to clipboardExpand all lines: META.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"web" : "https://github.com/fluent/fluent-logger-perl"
7373
}
7474
},
75-
"version" : "0.18",
75+
"version" : "0.19",
7676
"x_contributors" : [
7777
"HIROSE Masaaki <hirose31@gmail.com>",
7878
"Shinichiro Sei <sei@kayac.com>",

‎README.md

Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ Fluent::Logger is a structured event logger for Fluent.
3434

3535
%args:
3636

37-
tag_prefix => 'Str': optional
38-
host => 'Str': default is '127.0.0.1'
39-
port => 'Int': default is 24224
40-
timeout => 'Num': default is 3.0
41-
socket => 'Str': default undef (e.g. "/var/run/fluent/fluent.sock")
42-
prefer_integer => 'Bool': default 1 (set to Data::MessagePack->prefer_integer)
43-
event_time => 'Bool': default 0 (timestamp includes nanoseconds, supported by fluentd >= 0.14.0)
44-
buffer_overflow_handler => 'Code': optional
37+
tag_prefix => 'Str': optional
38+
host => 'Str': default is '127.0.0.1'
39+
port => 'Int': default is 24224
40+
timeout => 'Num': default is 3.0
41+
socket => 'Str': default undef (e.g. "/var/run/fluent/fluent.sock")
42+
prefer_integer => 'Bool': default 1 (set to Data::MessagePack->prefer_integer)
43+
event_time => 'Bool': default 0 (timestamp includes nanoseconds, supported by fluentd >= 0.14.0)
44+
buffer_limit => 'Int': defualt 8388608 (8MB)
45+
buffer_overflow_handler => 'Code': optional
46+
truncate_buffer_at_overflow => 'Bool': default 0
4547

4648
- buffer\_overflow\_handler
4749

@@ -51,6 +53,12 @@ Fluent::Logger is a structured event logger for Fluent.
5153
Your proc should accept a single argument, which will be the internal buffer of messages from the logger.
5254
A typical use-case for this would be writing to disk or possibly writing to Redis.
5355

56+
- truncate\_buffer\_at\_overflow
57+
58+
When truncate\_buffer\_at\_overflow is true and pending buffer size is larger than buffer\_limit, post() returns undef.
59+
60+
Pending buffer still be kept, but last message passed to post() is not sent and not appended to buffer. You may handle the message by other method.
61+
5462
- **post**($tag:Str, $msg:HashRef)
5563

5664
Send message to fluent server with tag.

‎lib/Fluent/Logger.pm

Copy file name to clipboardExpand all lines: lib/Fluent/Logger.pm
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package Fluent::Logger;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.18';
7+
our $VERSION = '0.19';
88

99
use IO::Socket::INET;
1010
use IO::Socket::UNIX;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.