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.Allpdns.loglevels.Alertpdns.loglevels.Criticalpdns.loglevels.Errorpdns.loglevels.Warningpdns.loglevels.Noticepdns.loglevels.Infopdns.loglevels.Debugpdns.loglevels.None