Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9b977a356ca36ef32dd25ba25cc0306f > files > 39

pdns-3.3.3-1.mga4.x86_64.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>2. Reporting errors</title><link rel="stylesheet" href="docbook.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="PowerDNS manual" /><link rel="up" href="backend-writers-guide.html" title="Appendix C. Backend writers' guide" /><link rel="prev" href="backend-writers-guide.html" title="Appendix C. Backend writers' guide" /><link rel="next" href="backend-configuration-details.html" title="3. Declaring and reading configuration details" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2. Reporting errors</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="backend-writers-guide.html">Prev</a> </td><th width="60%" align="center">Appendix C. Backend writers' guide</th><td width="20%" align="right"> <a accesskey="n" href="backend-configuration-details.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="2. Reporting errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="backend-error-reporting"></a>2. Reporting errors</h2></div></div></div><p>
	  To report errors, the Logger class is available which works mostly like an iostream. Example usage is as shown above in the RandomBackend.
	  Note that it is very important that each line is ended with <span class="command"><strong>endl</strong></span> as your message won't be visible otherwise.
	</p><p>
	  To indicate the importance of an error, the standard syslog errorlevels are available. They can be set by outputting 
	  <code class="function">Logger::Critical</code>,
	  <code class="function">Logger::Error</code>,
	  <code class="function">Logger::Warning</code>,
	  <code class="function">Logger::Notice</code>,
	  <code class="function">Logger::Info</code> or
	  <code class="function">Logger::Debug</code> to <code class="function">L</code>, in descending order of graveness.
	</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="backend-writers-guide.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="backend-writers-guide.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="backend-configuration-details.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Appendix C. Backend writers' guide </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 3. Declaring and reading configuration details</td></tr></table></div></body></html>