Skip to content

Commit 66d4b78

Browse files
authored
Merge pull request #61 from sy-c/master
v1.3.21
2 parents f4ae9ae + 52b9086 commit 66d4b78

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

doc/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,20 @@ achieved on CentOS 7 with e.g. (as root):
267267
When "infoLoggerD" mode is selected and no infoLoggerD connection can be established, the mode falls back to "stdout".
268268
269269
There is a built-in protection in the logging API to avoid message floods. If a client tries to send more than 500 messages in one second, or more than 1000 messages in one minute, further messages are redirected to a local file in /tmp. When the number of messages in this overflow file exceeds 1000 (or if can't be created), further messages are dropped. Normal behavior resumes when the message rate is reduced below 10 messages per minute. Some warning messages are logged by the library itself when this situation occurs.
270+
271+
Constructor of the InfoLogger accepts an optional string parameter, used to override some defaults.
272+
The same settings can also be defined using the INFOLOGGER_OPTIONS environment variable.
273+
274+
The order of evaluation is done in this order: constructor options, environment variable options, configuration file.
275+
Each step may overwrite what was set by the previous one.
276+
277+
The option string consists of a comma-separated list of key=value pairs, e.g "param1=value1, param2=value2".
278+
The configuration parameters accepted in this option string are:
279+
- outputMode: the main output mode of the library. As accepted by INFOLOGGER_MODE. Default: infoLoggerD.
280+
- outputModeFallback: the fallback output mode of the library. As accepted by INFOLOGGER_MODE. Default: stdout. The fallback mode is selected on initialization only (not later at runtime), if the main mode fails on first attempt.
281+
- verbose: 0 or 1. Default: 0. If 1, extra information is printed on stdout, e.g. to report the selected output.
282+
283+
270284
271285
* infoLoggerD local socket
272286

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,6 @@ This file describes the main feature changes for each InfoLogger released versio
7777
- infoLoggerServer:
7878
- bulk insert mode (transactions).
7979
- drop messages too long for DB.
80+
81+
## v1.3.21 - 08/02/2021
82+
- infoLogger API: added optional string parameter to the constructor, for custom configuration.

0 commit comments

Comments
 (0)