pdnslog() should be overloaded to specify log level #1074

Closed
zmallen opened this Issue Oct 21, 2013 · 1 comment

Projects

None yet

2 participants

@zmallen
Contributor
zmallen commented Oct 21, 2013

pdnslog() only accepts a message as an argument and writes out to Logger::Error (see lua-pdns.cc, line 216)

for more granular sys admin functionality, itd be great to have an overloaded function to write out to whatever log level that is needed

@zmallen zmallen added a commit to zmallen/pdns that referenced this issue Oct 22, 2013
@zmallen zmallen Enhancement for Issue #1074. Added operator overload for pdnslog() to…
… accept a log level when writing out to syslog. Added syslog levels to global lua table which correspond to the second argument in pdnslog. Example: pdnslog(INFO, pdnslog.Info), pdnslog(DEBUG, pdnslog.Debug) , these all correspond to their name in the Urgency enum
c0b85b4
@zmallen zmallen added a commit to zmallen/pdns that referenced this issue Oct 24, 2013
@zmallen zmallen Enhancement for Issue #1074. Added operator overload for pdnslog() to…
… accept a log level when writing out to syslog. Added syslog levels to global lua table which correspond to the second argument in pdnslog. Example: pdnslog(INFO, pdnslog.Info), pdnslog(DEBUG, pdnslog.Debug) , these all correspond to their name in the Urgency enum
97b6e6b
@zmallen zmallen added a commit to zmallen/pdns that referenced this issue Oct 25, 2013
@zmallen zmallen Enhancement for Issue #1074. Added operator overload for pdnslog() to…
… accept a log level when writing out to syslog. Added syslog levels to global lua table which correspond to the second argument in pdnslog. Example: pdnslog(INFO, pdnslog.Info), pdnslog(DEBUG, pdnslog.Debug) , these all correspond to their name in the Urgency enum
674a305
@Habbie
Member
Habbie commented Oct 29, 2013

closed by merge of #1076

@Habbie Habbie closed this Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment