libnavajo
web server for static and dynamic pages developement in C++
LogFile.hh
Go to the documentation of this file.
1 //********************************************************
12 //********************************************************
13 
14 #ifndef LOGFILE_HH_
15 #define LOGFILE_HH_
16 
17 #include <iostream>
18 #include <sstream>
19 #include <fstream>
20 #include <string>
21 
22 #include "libnavajo/LogOutput.hh"
23 
24 
28  class LogFile : public LogOutput
29  {
30  public:
31  LogFile(const char *filename);
32  ~LogFile();
33 
34  void append(const NvjLogSeverity& l, const std::string& m, const std::string& details="");
35  void initialize();
36 
37  private:
38  char filename[30];
39  std::ofstream *file;
40 
41  };
42 
43 
44 #endif
LogFile(const char *filename)
Definition: LogFile.cc:54
void append(const NvjLogSeverity &l, const std::string &m, const std::string &details="")
Definition: LogFile.cc:25
Generic log output (abstract class)
~LogFile()
Definition: LogFile.cc:66
void initialize()
Definition: LogFile.cc:36
Definition: LogFile.hh:28
Definition: LogOutput.hh:30