/[libvob]/libvob/src/util/Debug.cxx
ViewVC logotype

Diff of /libvob/src/util/Debug.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Sun Apr 20 10:49:10 2003 UTC revision 1.5 by tjl, Sun Apr 20 10:51:38 2003 UTC
# Line 30  Debug.cxx Line 30  Debug.cxx
30  #include <iostream>  #include <iostream>
31  #include <string>  #include <string>
32  #include "vob/Debug.hxx"  #include "vob/Debug.hxx"
33    #include <fstream>
34  #include <cstdlib>  #include <cstdlib>
35    
36  namespace Vob {  namespace Vob {
# Line 37  namespace Vob { Line 38  namespace Vob {
38  namespace Debug {  namespace Debug {
39            
40      std::ostream *debugStream() {      std::ostream *debugStream() {
41          const char *str = std::getEnv("VOBLOG");          const char *str = std::getenv("VOBLOG");
42          static std::ostream *dbgstream =          static std::ostream *dbgstream =
43              (str ? new ofstream(str) : std::cout);              (str ? new std::ofstream(str) : &std::cout);
44          if(str) {          if(str) {
45              dbgstream->rdbuf()->pubsetbuf(0,0);              dbgstream->rdbuf()->pubsetbuf(0,0);
46          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26