Re: syslog configurable line splitting behavior

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: syslog configurable line splitting behavior
Дата
Msg-id 56DF883C.1090600@gmx.net
обсуждение исходный текст
Ответ на Re: syslog configurable line splitting behavior  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-hackers
On 3/4/16 11:01 AM, Alexander Korotkov wrote:
> On Sat, Feb 27, 2016 at 6:49 AM, Peter Eisentraut <peter_e@gmx.net
> <mailto:peter_e@gmx.net>> wrote:
> 
>     Writing log messages to syslog caters to ancient syslog implementations
>     in two ways:
> 
>     - sequence numbers
>     - line splitting
> 
>     While these are arguably reasonable defaults, I would like a way to turn
>     them off, because they get in the way of doing more interesting things
>     with syslog (e.g., logging somewhere that is not just a text file).
> 
>     So I propose the two attached patches that introduce new configuration
>     Boolean parameters syslog_sequence_numbers and syslog_split_lines that
>     can toggle these behaviors.
> 
> 
> Would it have any usage if we make PG_SYSLOG_LIMIT configurable (-1 for
> disable) instead of introducing boolean?

That would work, too.  But then we'd need another setting to disable
splitting on newlines.  That way we'd have more settings, but they
actually mirror the corresponding settings on the rsyslogd side better.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andreas Karlsson
Дата:
Сообщение: Re: syslog configurable line splitting behavior
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: syslog configurable line splitting behavior