]>
Commit | Line | Data |
---|---|---|
cfc92e2f | 1 | --- trunk/pdns/pdns/logger.cc (revision 304) |
2 | +++ trunk/pdns/pdns/logger.cc (revision 305) | |
3 | @@ -1,11 +1,10 @@ | |
4 | /* | |
5 | PowerDNS Versatile Database Driven Nameserver | |
6 | - Copyright (C) 2002 PowerDNS.COM BV | |
7 | + Copyright (C) 2005 PowerDNS.COM BV | |
8 | ||
9 | This program is free software; you can redistribute it and/or modify | |
10 | - it under the terms of the GNU General Public License as published by | |
11 | - the Free Software Foundation; either version 2 of the License, or | |
12 | - (at your option) any later version. | |
13 | + it under the terms of the GNU General Public License version 2 as | |
14 | + published by the Free Software Foundation | |
15 | ||
16 | This program is distributed in the hope that it will be useful, | |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | @@ -131,6 +130,16 @@ | |
19 | return *this; | |
20 | } | |
21 | ||
22 | +Logger& Logger::operator<<(unsigned long i) | |
23 | +{ | |
24 | + ostringstream tmp; | |
25 | + tmp<<i; | |
26 | + | |
27 | + *this<<tmp.str(); | |
28 | + | |
29 | + return *this; | |
30 | +} | |
31 | + | |
32 | ||
33 | Logger& Logger::operator<<(ostream & (&)(ostream &)) | |
34 | { | |
35 | --- trunk/pdns/pdns/logger.hh (revision 304) | |
36 | +++ trunk/pdns/pdns/logger.hh (revision 305) | |
37 | @@ -1,11 +1,10 @@ | |
38 | /* | |
39 | PowerDNS Versatile Database Driven Nameserver | |
40 | - Copyright (C) 2002 PowerDNS.COM BV | |
41 | + Copyright (C) 2005 PowerDNS.COM BV | |
42 | ||
43 | This program is free software; you can redistribute it and/or modify | |
44 | - it under the terms of the GNU General Public License as published by | |
45 | - the Free Software Foundation; either version 2 of the License, or | |
46 | - (at your option) any later version. | |
47 | + it under the terms of the GNU General Public License version 2 as | |
48 | + published by the Free Software Foundation | |
49 | ||
50 | This program is distributed in the hope that it will be useful, | |
51 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
52 | @@ -111,6 +110,7 @@ | |
53 | Logger& operator<<(const string &s); //!< log a string | |
54 | Logger& operator<<(int); //!< log an int | |
55 | Logger& operator<<(unsigned int); //!< log an unsigned int | |
56 | + Logger& operator<<(unsigned long); //!< log an unsigned int | |
57 | Logger& operator<<(Urgency); //!< set the urgency, << style | |
58 | ||
59 | #ifndef WIN32 |