Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We don't need you anymore. You are weak. Goodbye !
[simgrid.git] / testsuite / xbt / log_usage.c
1 /* $Id$ */
2
3 /* log_usage - A test of normal usage of the log facilities                 */
4
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "gras.h"
11
12 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,"Logging specific to this test");
13 XBT_LOG_NEW_CATEGORY(top,"Useless test channel");
14
15 int main(int argc, char **argv) {
16   xbt_init_defaultlog(&argc,argv,"root.thresh=debug log.thresh=debug");
17
18   DEBUG1("val=%d", 1);
19   WARN1("val=%d", 2);
20   CDEBUG2(top, "val=%d%s", 3, "!");
21   CRITICAL6("false alarm%s%s%s%s%s%s", "","","","","","!");
22   
23   xbt_exit();
24   return 0;
25 }