-
Notifications
You must be signed in to change notification settings - Fork 34
tac_plus‐ng: Debugging Options
In some cases it might make sense to set some debug options when calling tac_plus-ng. First of all, my general recommendation is to run the
tactrace.pl
utility which outputs quite some debug data, but possibly not all.
Nevertheless, at first try tactrace.pl
. It's pretty close to a real-life scenario and may help you resolving whatever issue you're seeing.
If tactrace.pl
doesn't help: You can reconfigure with configure --debug
, run make
, make install
and start tac_plus-ng
with tac_plus-ng -1 -d -1 -f /path/to/config
. -1
will switch to single-process mode, -f
keeps the daemon in foreground and -d -1
enables all debug options available (-d -2
would skip configuration parsing, remembering that might prove useful).
When run from a terminal, debug output will end up in stderr (unless you've specified an alternative output location via debug redirect = <file>
), otherwise it will be sent to syslog. You can, however, set debug redirect = stderr
to enforce logging to stderr in that case, too.