1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/* log.h
*
* Copyright (C) 1999 by Judd Montgomery
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __LOG_H__
#define __LOG_H__
#define LOG_DEBUG 1 /*debugging info for programers, and bug reports */
#define LOG_INFO 2 /*info, and misc messages */
#define LOG_WARN 4 /*worse messages */
#define LOG_FATAL 8 /*even worse messages */
#define LOG_STDOUT 256 /*messages always go to stdout */
#define LOG_FILE 512 /*messages always go to the log file */
#define LOG_GUI 1024 /*messages always go to the gui window */
extern int glob_log_file_mask;
extern int glob_log_stdout_mask;
extern int glob_log_gui_mask;
int jpilot_logf(int log_level, char *format, ...);
#endif
|