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 /*500 is to small for eclipse traces, (builtin_trace_args, perhaps the
44 buffer should be created there dynamically, if the text is longer,
45 instead of setting the size for all invocations that big*/
47 #define MAXLOGTEXT 16383
49 /* function prototypes ********************************************************/
51 void log_init(const char *fname);
55 void log_vprint(const char *text, va_list ap);
56 void log_print(const char *text, ...);
57 void log_println(const char *text, ...);
59 void log_finish(void);
62 /* log message functions */
63 void log_message_utf(const char *msg, utf *u);
64 void log_message_class(const char *msg, classinfo *c);
65 void log_message_class_message_class(const char *msg1, classinfo *c1,
66 const char *msg2, classinfo *c2);
67 void log_message_method(const char *msg, methodinfo *m);
69 #define log_text(s) log_println("%s", (s))
70 #define dolog log_println
76 #endif /* _LOGGING_H */
80 * These are local overrides for various environment variables in Emacs.
81 * Please do not remove this and leave it at the end of the file, where
82 * Emacs will automagically detect them.
83 * ---------------------------------------------------------------------