Re: Syslog Facility Patch
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Syslog Facility Patch |
| Дата | |
| Msg-id | Pine.LNX.4.21.0011121904470.775-100000@peter.localdomain обсуждение исходный текст |
| Ответ на | Syslog Facility Patch (Larry Rosenman <ler@lerctr.org>) |
| Ответы |
Re: Syslog Facility Patch
|
| Список | pgsql-hackers |
Larry Rosenman writes:
> Here is a patch for allowing the syslog facility to be set.
I think you want to check for invalid values, like "LOCAL37.5". The last
field in the ConfigNamesString structure (see below) allows you to set a
"parse hook", that is, a function that parses the input value and returns
true if it is okay. At least this is how it is supposed to work, I've
never actually tried it. :) Or maybe just make it an integer option?
> ***************
> *** 303,308 ****
> --- 304,312 ----
>
> {"unix_socket_group", PGC_POSTMASTER, &Unix_socket_group,
> "", NULL},
> + #ifdef ENABLE_SYSLOG
> + {"syslog_facility", PGC_SIGHUP, &Syslog_facility, "LOCAL0", NULL},
> + #endif
>
> {NULL, 0, NULL, NULL, NULL}
> };
>
>
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
В списке pgsql-hackers по дате отправления: