27static int debug_enabled=0;
28static ostream *debug_ostream=
NULL;
31static int info_enabled=0;
32static ostream *info_ostream=
NULL;
35static int warn_enabled=0;
36static ostream *warn_ostream=
NULL;
39static int error_enabled=0;
40static ostream *error_ostream=
NULL;
58 debug_streamer.setOutputDevice(device);
59 delete(debug_ostream);
60 debug_ostream=
new ostream(&debug_streamer);
62 info_streamer.setOutputDevice(device);
64 info_ostream=
new ostream(&info_streamer);
66 warn_streamer.setOutputDevice(device);
68 warn_ostream=
new ostream(&warn_streamer);
70 error_streamer.setOutputDevice(device);
71 delete(error_ostream);
72 error_ostream=
new ostream(&error_streamer);
84 delete(debug_ostream);
87 delete(error_ostream);
95 rename(device_filename, copy_filename);
101 debug_ostream =
new ostream(&debug_streamer);
104 info_ostream=
new ostream(&info_streamer);
107 warn_ostream =
new ostream(&warn_streamer);
110 error_ostream =
new ostream(&error_streamer);
125 delete(debug_ostream);
126 debug_ostream=
new ostream(&debug_streamer);
138 delete(info_ostream);
139 info_ostream=
new ostream(&info_streamer);
151 delete(warn_ostream);
152 warn_ostream=
new ostream(&warn_streamer);
164 delete(error_ostream);
165 error_ostream=
new ostream(&error_streamer);
174 return(debug_ostream);
179 return(info_ostream);
184 return(warn_ostream);
189 return(error_ostream);
static int setAllStreams(OutputDevice *device)
static int setErrorStream(OutputDevice *device)
static ostream * warnStream(void)
static int ReplaceAllStreams(FileD *output_device, IN char *device_filename, IN char *copy_filename)
static ostream * infoStream(void)
static ostream * debugStream(void)
static int setInfoStream(OutputDevice *device)
static ostream * errorStream(void)
static int setWarnStream(OutputDevice *device)
static int setDebugStream(OutputDevice *device)
int setOutputDevice(OutputDevice *output_device)
OutputDevice * output_device