
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Testing System Logging with logger
|
435
and the global options time_reap( ), time_reopen( ), gc_idle_threshold( ),andgc_
busy_threshold( )
are useful for tuning syslog-ng’s performance to fit your particular
environment.
The official (maintained) documentation for Syslog-ng is the Syslog-ng Reference
Manual. PostScript, SGML, HTML, and ASCII text versions of this document are
included in the /doc directory of Syslog-ng’s source-code distribution.
For advanced or otherwise unaddressed issues, the best source of Sys-
log-ng information is the Syslog-ng mailing list and its archives. See
http://lists.balabit.hu/mailman/listinfo/syslog-ng for subscription infor-
mation and archives.
Testing System Logging with logger
Before we leave the topic of system-logger configuration and use, we should cover a
tool you can use to test your new configurations, regardless of whether you use sys-
log or Syslog-ng: logger. logger is a command-line application that sends messages to
the system logger. In addition to being a good diagnostic tool, logger is especially
useful for adding logging functionality to shell scripts.
The usage we’re interested in here, of course, is diagnostics. It’s easiest to explain
how to use logger with an example.
Suppose you’ve just reconfigured syslog to send all daemon messages ...