Logging to specific file

Joseph S D Yao jsdy at cospo.osis.gov
Thu Oct 28 18:06:46 UTC 1999


the one other thing to mention in this thread that I haven't yet seen,
is what the defaults are.  As you now know, you can change these
defaults using the "logging" statement; and you can change where
'syslogd' puts them by modifying "/etc/syslog.conf".

In named.conf(5), the logging statement is:

     logging {
       [ channel channel_name {
         ( file path_name
            [ versions ( number | unlimited ) ]
            [ size size_spec ]
          | syslog ( kern | user | mail | daemon | auth | syslog | lpr |
                     news | uucp | cron | authpriv | ftp |
                     local0 | local1 | local2 | local3 |
                     local4 | local5 | local6 | local7 )
          | null );
         [ severity ( critical | error | warning | notice |
                      info  | debug [ level ] | dynamic ); ]
         [ print-category yes_or_no; ]
         [ print-severity yes_or_no; ]
         [ print-time yes_or_no; ]
       }; ]

The defaults, in the absence of any explicit logging statements, are:

         logging {
             category default { default_syslog; default_debug; };
             category panic { default_syslog; default_stderr; };
             category packet { default_debug; };
             category eventlib { default_debug; };
         };

where the channels are [or would be, if the syntax allowed the
following, which it does not]:

         channel default_syslog {
             syslog daemon;       # send to syslog's daemon facility
             severity info;       # only send priority info and higher
         };

         channel default_debug {
             file "named.run";    # write to named.run in the working directory
                                  # Note: stderr is used instead of "named.run"
                                  # if the server is started with the -f option.
             severity dynamic;    # log at the server's current debug level
         };

         channel default_stderr { # writes to stderr
             file "<stderr>";     # this is illustrative only; there's currently
                                  # no way of specifying an internal file
                                  # descriptor in the configuration language.
             severity info;       # only send priority info and higher
         };

         channel null {
             null;                # toss anything sent to this channel
         };

--
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list