diff options
author | Fritz Elfert <felfert@to.com> | 1999-07-04 12:00:07 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-07-04 12:00:07 +0000 |
commit | 2b9c8881877dcb1835f17a0c5b642784c738049f (patch) | |
tree | d80f8469400d2d6bbfe396b68964de4d8bc59fda /lib/log.h | |
parent | f2d9bc87bc87b4ef3cdee081c65ad1c248804edd (diff) | |
download | plptools-2b9c8881877dcb1835f17a0c5b642784c738049f.tar.gz plptools-2b9c8881877dcb1835f17a0c5b642784c738049f.tar.bz2 plptools-2b9c8881877dcb1835f17a0c5b642784c738049f.zip |
Initial import.
Diffstat (limited to 'lib/log.h')
-rw-r--r-- | lib/log.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/log.h b/lib/log.h new file mode 100644 index 0000000..b0a2aa3 --- /dev/null +++ b/lib/log.h @@ -0,0 +1,18 @@ +#ifndef _log_h_ +#define _log_h_ + +#include <ostream.h> +#include <syslog.h> + +class logbuf : public streambuf { + public: + logbuf(int); + int overflow(int c = EOF); + private: + char *ptr; + int len; + int level; + char buf[1024]; +}; + +#endif |