libUnihan 0.5.3
|
00001 00021 /* 00022 * Copyright © 2008 Red Hat, Inc. All rights reserved. 00023 * Copyright © 2008 Ding-Yi Chen <dchen at redhat dot com> 00024 * 00025 * This file is part of the libUnihan Project. 00026 * 00027 * This library is free software; you can redistribute it and/or 00028 * modify it under the terms of the GNU Lesser General Public 00029 * License as published by the Free Software Foundation; either 00030 * version 2 of the License, or (at your option) any later version. 00031 * 00032 * This library is distributed in the hope that it will be useful, 00033 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00034 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00035 * GNU Lesser General Public License for more details. 00036 * 00037 * You should have received a copy of the GNU Lesser General Public 00038 * License along with this program; if not, write to the 00039 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 00040 * Boston, MA 02111-1307 USA 00041 */ 00042 00043 #ifndef VERBOSEMSG_H_ 00044 #define VERBOSEMSG_H_ 00045 #include <stdio.h> 00046 #include <glib.h> 00055 #define VERBOSE_MSG_NONE -1 //!< No debug message output. 00056 #define VERBOSE_MSG_CRITICAL 0 //!< Output critical messages. 00057 #define VERBOSE_MSG_ERROR 1 //!< Output general errors and above. 00058 #define VERBOSE_MSG_WARNING 2 //!< Output warning messages and above. 00059 #define VERBOSE_MSG_INFO1 3 //!< Output the information message level 1 and above. 00060 #define VERBOSE_MSG_INFO2 4 //!< Output the information message level 2 and above. 00061 #define VERBOSE_MSG_INFO3 5 //!< Output the information message level 3 and above. 00062 #define VERBOSE_MSG_INFO4 6 //!< Output the information message level 4 and above. 00063 #define VERBOSE_MSG_INFO5 7 //!< Output the information message level 5 and above. 00064 #define VERBOSE_MSG_INFO6 8 //!< Output the information message level 6 and above. 00065 00075 gint verboseMsg_get_level(); 00076 00082 void verboseMsg_set_level(gint verboseLevel); 00083 00089 gint verboseMsg_get_fileLevel(); 00090 00096 void verboseMsg_set_fileLevel(gint fileVerboseLevel); 00097 00103 void verboseMsg_set_logFile(FILE *outputFile); 00104 00105 00122 gint verboseMsg_print(gint verboseLevel, const gchar *format, ...); 00123 00132 void verboseMsg_increase_level(gint difference); 00133 00134 #endif /*VERBOSEMSG_H_*/