1 /* src/toolbox/logging.h - contains logging functions
3 Copyright (C) 1996-2005, 2006, 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2, or (at
11 your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
35 #include "vm/method.h"
43 /* function prototypes ********************************************************/
45 void log_init(const char *fname);
49 void log_vprint(const char *text, va_list ap);
50 void log_print(const char *text, ...);
51 void log_println(const char *text, ...);
53 void log_finish(void);
56 /* log message functions */
57 void log_message_utf(const char *msg, utf *u);
58 void log_message_class(const char *msg, classinfo *c);
59 void log_message_class_message_class(const char *msg1, classinfo *c1,
60 const char *msg2, classinfo *c2);
61 void log_message_method(const char *msg, methodinfo *m);
63 #define log_text(s) log_println("%s", (s))
64 #define dolog log_println
70 #endif /* _LOGGING_H */
74 * These are local overrides for various environment variables in Emacs.
75 * Please do not remove this and leave it at the end of the file, where
76 * Emacs will automagically detect them.
77 * ---------------------------------------------------------------------