aboutsummaryrefslogtreecommitdiffstats
path: root/lib/log.h
blob: 740bced806353096daa4e2169a9f3c9365e3a787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* $Id$
 */

#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