"defaults", which is an alias for "fatal,error,user,warning,info".
* scripts/amd.conf.5, doc/am-utils.texi, amd/amd.8: document new
log_option "defaults".
* amq/amq.8: typo. Arg name for -D is "debug_options" not
"log_options".
2005-08-14 Erez Zadok <ezk@cs.sunysb.edu>
+ * libamu/xutil.c (xlog_opt): define new pseudo log_option named
+ "defaults", which is an alias for "fatal,error,user,warning,info".
+
+ * scripts/amd.conf.5, doc/am-utils.texi, amd/amd.8: document new
+ log_option "defaults".
+
+ * amq/amq.8: typo. Arg name for -D is "debug_options" not
+ "log_options".
+
* libamu/xutil.c: make xlog_level static, and initialize it to
XLOG_DEFAULT.
(cmdoption): take unsigned int as flags argument, and print any
problems (including errors relating to incorrectly setting other log
options).
+Amd now understands a new log_option called "defaults" which is synonymous
+with "fatal,error,user,warning,info" (and is also what logging happens by
+default).
+
*** Notes specific to am-utils version 6.1.1
New amd.conf global parameter: forced_unmounts (default to "no"). If set to
.TP
.BI \-x " options"
Specify run-time logging options. The options are a comma separated
-list chosen from: fatal, error, user, warn, info, map, stats, all.
-Note that "fatal" and "error" are mandatory and cannot be turned off.
+list chosen from: fatal, error, user, warn, info, map, stats, defaults, and
+all. Note that "fatal" and "error" are mandatory and cannot be turned off.
.TP
.BI \-y " domain"
off.
.TP
-.BI \-D " log_options"
+.BI \-D " debug_options"
Ask the automounter to use the debugging options specified in
.I debug_options
from now on.
Additional statistics
@item all
All of the above
+@item defaults
+An alias for "fatal,error,user,warning,info".
@end table
Initially a set of default logging flags is enabled. This is as if
-@samp{-x all,nomap,nostats} had been selected. The command line is
+@samp{-x defaults}
+or
+@samp{-x fatal,error,user,warning,info}
+had been selected. The command line is
parsed and logging is controlled by the @code{-x} option. The very first
set of logging flags is saved and can not be subsequently disabled using
@i{Amq}. This default set of options is useful for general production
@samp{LOG_INFO}
@end table
-
The options can be prefixed by the string @samp{no} to indicate
that this option should be turned off. For example, to obtain all
but @samp{info} messages the option @samp{-x all,noinfo} would be used.
@subsection @t{log_options} Parameter
@cindex log_options Parameter
-(type=string, default fatal+error+user+warning+info). Same as the @code{-x}
+(type=string, default=``defaults''). Same as the @code{-x}
option to @i{Amd}. Specify any logging options for @i{Amd}. Options
are comma delimited, and can be preceded by the string @samp{no} to
negate their meaning. The @samp{debug} logging option is only available
@table @samp
@item all
all messages
+@item defaults
+an alias for "fatal,error,user,warning,info"
@item debug
debug messages
@item error
#define XLOG_DEBUG 0x0020
#define XLOG_MAP 0x0040
#define XLOG_STATS 0x0080
+/* log option compositions */
#define XLOG_MASK 0x00ff /* mask for all flags */
#define XLOG_MANDATORY (XLOG_FATAL|XLOG_ERROR) /* cannot turn these off */
#define XLOG_ALL (XLOG_FATAL|XLOG_ERROR|XLOG_USER|XLOG_WARNING|XLOG_INFO|XLOG_MAP|XLOG_STATS)
struct opt_tab xlog_opt[] =
{
{"all", XLOG_ALL}, /* All messages */
+ {"defaults", XLOG_DEFAULT}, /* Default messages */
#ifdef DEBUG
{"debug", XLOG_DEBUG}, /* Debug messages */
#endif /* DEBUG */ /* DEBUG */
using the LOG_LOCAL7 facility (if it exists on the system).
.TP
-.BR log_options " (string, default=fatal+error+user+warning+info)"
+.BR log_options " (string, default=defaults)"
Same as the
.B \-x
option to Amd. Specify any logging options for Amd. Options are comma
.nf
\fBall\fR all messages
+\fBdefaults\fR default messages (fatal,error,user,warning,info)
\fBdebug\fR debug messages
\fBerror\fR non-fatal system errors (cannot be turned off)
\fBfatal\fR fatal errors (cannot be turned off)