diff options
author | Fritz Elfert <felfert@to.com> | 2003-02-05 07:59:09 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2003-02-05 07:59:09 +0000 |
commit | f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85 (patch) | |
tree | 166bf2df5ca4fc40904af30a56a0de88683baf8d /lib/log.h | |
parent | 27ba222abbf3137eef49e31ac521de01d39c8088 (diff) | |
download | plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.tar.gz plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.tar.bz2 plptools-f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85.zip |
- Changes for compiling with gcc 3.2
Diffstat (limited to 'lib/log.h')
-rw-r--r-- | lib/log.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -24,7 +24,8 @@ #ifndef _LOG_H_ #define _LOG_H_ -#include <ostream.h> +#include <iostream> + #include <syslog.h> /** @@ -51,32 +52,32 @@ * file. If it is omitted or set to -1, logging can be switched on * or off. The initial state is on. */ -class logbuf : public streambuf { +class logbuf : public std::streambuf { public: /** * Constructs a new instance. * - * @param level The log level for this instance. + * @param loglevel The log level for this instance. * see syslog(3) for symbolic names to use. * @param fd An optional file descriptor to use * if switched off. */ - logbuf(int level, int fd = -1); + logbuf(int loglevel, int fd = -1); /** * Switches loggin on or off. * - * @param on The desired state. + * @param newstate The desired state. */ - void setOn(bool on) { _on = on; } + void setOn(bool newstate) { _on = newstate; } /** * Modifies the loglevel of this instance. * - * @param level The new loglevel. + * @param newlevel The new loglevel. */ - void setLevel(int level) { _level = level; } + void setLevel(int newlevel) { _level = newlevel; } /** * Retrieve the current state. |