~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to pdns/logger.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Mohlmann, Matthijs Mohlmann, Christoph Haas
  • Date: 2007-04-15 23:23:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070415232339-5x3scc8gx04e50um
Tags: 2.9.21-1
[ Matthijs Mohlmann ]
* New upstream release. (Closes: #420294)
* Remove meta pdns package.
* Added new sqlite3 backend package.
* Months and minutes where mixed up. (Closes: #406462)
* Case sensitivity in bind backend caused PowerDNS to not serve a certain
  zone. (Closes: #406461)
* Bind backend forgot about zones on a notify. (Closes: #398213)

[ Christoph Haas ]
* Documented incorporated backend bind. (Closes: #415471)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
    You should have received a copy of the GNU General Public License
15
15
    along with this program; if not, write to the Free Software
16
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
*/
18
18
#include "logger.hh"
 
19
#include "config.h"
 
20
 
 
21
#ifndef RECURSOR
19
22
#include "statbag.hh"
 
23
extern StatBag S;
 
24
#endif
20
25
 
21
26
using namespace std;
22
27
 
42
47
    clog <<msg <<endl;
43
48
  }
44
49
  if( u <= d_loglevel ) {
45
 
    extern StatBag S;
 
50
#ifndef RECURSOR
46
51
    S.ringAccount("logmessages",msg);
 
52
#endif
47
53
    syslog(u,"%s",msg.c_str());
48
54
  }
49
55
}
139
145
  return *this;
140
146
}
141
147
 
 
148
Logger& Logger::operator<<(unsigned long long i)
 
149
{
 
150
  ostringstream tmp;
 
151
  tmp<<i;
 
152
 
 
153
  *this<<tmp.str();
 
154
 
 
155
  return *this;
 
156
}
 
157
 
 
158
 
142
159
Logger& Logger::operator<<(long i)
143
160
{
144
161
  ostringstream tmp;