Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
debug.cpp
Go to the documentation of this file.
1 #include "debug.h"
2 #include <fstream>
3 #include <iomanip>
4 #include <cstdlib>
5 
7 
8 #if ENABLE_LOGGING
9 
10 
11 namespace xstream{
12 
13 std::ostream* debug = &std::clog;
14 
15 #if 0
16  class log {
17  log()
18  {
19  char* fname = getenv("XSTREAM_LOGFILE");
20  if (0 != fname) {
21  debug = new std::fstream(fname, std::ios::out | std::ios::trunc);
22  (*debug) << std::ios::unitbuf;
23  }
24  }
25  };
26 
27  log _log_();
28 
29 #endif
30 
31 } //namespace xstream
32 
33 
34 #endif
debugging/logging support
int AGlobalVariableToPreventWarningAboutNoSymbols
Definition: debug.cpp:6
bool debug