syslog_line_prefix

From: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: syslog_line_prefix
Date: 2009-09-14 00:43:41
Message-ID: 20090914093124.E15E.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here is a patch to add a GUC parameter "syslog_line_prefix".
It adds prefixes to syslog and eventlog. We still have
"log_line_prefix", that will be used only for stderr logs.

We have a tip that log_line_prefix is not required for syslog
in the documentation, but we'd better to have independent setttings
if we set log_destination to 'stderr, syslog'.

http://developer.postgresql.org/pgdocs/postgres/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT
| Tip: Syslog produces its own time stamp and process ID
| information, so you probably do not want to use those escapes
| if you are logging to syslog.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachment Content-Type Size
syslog_line_prefix-20090914.patch application/octet-stream 15.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-09-14 01:20:44 Re: Elementary dependency look-up
Previous Message Andrew Dunstan 2009-09-14 00:17:45 Re: COPY enhancements