From 2b9c8881877dcb1835f17a0c5b642784c738049f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 4 Jul 1999 12:00:07 +0000 Subject: Initial import. --- lib/log.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/log.h (limited to 'lib/log.h') 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 +#include + +class logbuf : public streambuf { + public: + logbuf(int); + int overflow(int c = EOF); + private: + char *ptr; + int len; + int level; + char buf[1024]; +}; + +#endif -- cgit v1.2.3