[Pgpool-general] Logs and pgpool-II ?

Yoshiyuki Asaba y-asaba at sraoss.co.jp
Wed Sep 26 10:50:25 UTC 2007


Hi,

From: Hervé_Piedvache <bill.footcow at gmail.com>
Subject: [Pgpool-general] Logs and pgpool-II ?
Date: Tue, 25 Sep 2007 23:42:32 +0200

> May be a stupid question but except running pgpool II v1.2 with -n -d 
> option ... I never get any log file ...

logdir is the directory which pgpool puts pid file.

If you want to save log messages, you can use a file redirection or log
rotation program. pgpool writes logs to stderr.

  % pgpool -n -d > /var/log/pgpool.log 2>&1

or

  % pgpool -n -d 2>&1 | /usr/sbin/cronolog \
    --hardlink=/var/log/pgpool.log '/var/log/%Y-%m-%d-pgpool.log' &

cronolog is log rotation program. See http://cronolog.org/

Regards,
--
Yoshiyuki Asaba
y-asaba at sraoss.co.jp


More information about the Pgpool-general mailing list