diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
| commit | 7ead5b7a9ea99a3e0f1459187b3262f7054f0126 (patch) | |
| tree | 17e082a745fd1bae8af5b8b1682c3a2ff94769c8 /logd.h | |
Diffstat (limited to 'logd.h')
| -rw-r--r-- | logd.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#ifndef LOGD_H +#define LOGD_H + +#include "incl.h" +#include "s_tool.h" +#include "s_conf.h" +#include <fstream> +#include <queue> +#include <time.h> +class logd { + + private: + string s_logfile; + queue<string> s_queue; + ofstream s_output; + int i_lines; + public: + logd( string filename ); + ~logd(); + + void flush(); + void log( map_string request ); +}; +#endif |
