X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d73750d4032cc6768f10f2778846d367f3360196..90f57033e73fcc8191ed4ee325c9b7593eb699e6:/src/xbt/log.c?ds=sidebyside
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=")) ||