Changes between Version 6 and Version 7 of PythonLogging


Ignore:
Timestamp:
Jun 17, 2010, 11:22:15 PM (7 years ago)
Author:
zzchen_pku
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonLogging

    v6 v7  
    99== '''Channels''' ==
    1010A daemon can't use syslog and stderr channel at the same time.  SysLog channel is intended for use when the daemon is running as a background process, and stderr channel works for foreground process.  File channel is an optional, which
    11 output log messages to a disk file.
     11output log messages to a disk file.  File channel will be enabled if we specify the path of log file.
    1212=== '''File channel''' ===
    1313File channel has three config options, all of them can be reconfigured at runtime.
     
    7171    self._log = isc.log.NSLogger(self._config_data.get('log_name'), self._config_data.get('log_file'),
    7272                                 self._config_data.get('log_severity'), self._config_data.get('log_versions'),
    73                                  self._config_data.get('log_max_bytes'), log_to_console = True)
     73                                 self._config_data.get('log_max_bytes'), log_to_console = verbose)
    7474    ...
    7575}}}