1 /* Copyright (c) 2003, 2005 MySQL AB
2    Use is subject to license terms
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; version 2 of the License.
7 
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12 
13    You should have received a copy of the GNU General Public License
14    along with this program; if not, write to the Free Software
15    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA */
16 
17 
18 #include "NDBT_Output.hpp"
19 
20 FileOutputStream gerr_fileoutputstream(stderr);
21 FileOutputStream gwarning_fileoutputstream(stderr);
22 FileOutputStream ginfo_fileoutputstream(stdout);
23 FileOutputStream gdebug_fileoutputstream(stdout);
24 
25 FilteredNdbOut g_err(gerr_fileoutputstream,         0, 2);
26 FilteredNdbOut g_warning(gwarning_fileoutputstream, 1, 2);
27 FilteredNdbOut g_info(ginfo_fileoutputstream,       2, 2);
28 FilteredNdbOut g_debug(gdebug_fileoutputstream,     3, 2);
29 
30 void
setOutputLevel(int i)31 setOutputLevel(int i){
32   g_err.setLevel(i);
33   g_warning.setLevel(i);
34   g_info.setLevel(i);
35   g_debug.setLevel(i);
36 }
37