To log messages with the main PowerDNS Recursor process, use pdnslog()
.
pdnslog()
can also write out to a syslog loglevel if specified.
Use pdnslog(message, pdns.loglevels.LEVEL)
with the
correct pdns.loglevels entry. Entries are listed in the following table:
pdnslog
(message)¶pdnslog
(message, level)Log message` at the Info level if ``level
is not set.
Parameters: |
|
---|
pdns.loglevels.All
pdns.loglevels.Alert
pdns.loglevels.Critical
pdns.loglevels.Error
pdns.loglevels.Warning
pdns.loglevels.Notice
pdns.loglevels.Info
pdns.loglevels.Debug
pdns.loglevels.None