From 90f57033e73fcc8191ed4ee325c9b7593eb699e6 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 7 Feb 2005 17:06:03 +0000 Subject: [PATCH 1/1] cosmetics git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@893 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/log.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/xbt/log.c b/src/xbt/log.c index b532cb0260..b7ec9022e7 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -174,7 +174,11 @@ by the compiler. By setting it to gras_log_priority_infinite, all logging requests are statically disabled and cost nothing. Released executables might be compiled with \verbatim-DXBT_LOG_STATIC_THRESHOLD=gras_log_priority_infinite\endverbatim - + +Compiling with the \verbatim-DNLOG\endverbatim option disables all logging +requests at compilation time while the \verbatim-DNDEBUG\endverbatim disables +the requests of priority below INFO. +

Appenders

Each category has an optional appender. An appender is a pointer to a @@ -201,13 +205,11 @@ welcome here.

Misc and Caveats

-Do not use any of the macros that start with '_'. - -Log4J has a 'rolling file appender' which you can select with a run-time -option and specify the max file size. This would be a nice default for -non-kernel applications. - -Careful, category names are global variables. + - Do not use any of the macros that start with '_'. + - Log4J has a 'rolling file appender' which you can select with a run-time + option and specify the max file size. This would be a nice default for + non-kernel applications. + - Careful, category names are global variables. */ @@ -351,7 +353,7 @@ void xbt_log_init(int *argc,char **argv, const char *defaultlog) { char *opt; int found=0; - /** Set logs and init log submodule */ + /* Set logs and init log submodule */ for (i=1; i<*argc; i++) { if (!strncmp(argv[i],"--gras-log=",strlen("--gras-log=")) || !strncmp(argv[i],"--surf-log=",strlen("--surf-log=")) || -- 2.20.1