Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
7cd1afc00121a6cb2a3d24cb8604b35489851610
[simgrid.git] / win32_testsuite / borland / builder6 / simulation / xbt / log_usage / log_usage.c
1
2 /* log_usage - A test of normal usage of the log facilities                     */
3
4 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.                */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package.     */
8
9 #pragma hdrstop
10
11 #include <gras.h>
12
13 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,
14                                 "Logging specific to this test");
15 XBT_LOG_NEW_CATEGORY(top, "Useless test channel");
16
17 #pragma argsused
18
19 int main(int argc, char **argv)
20 {
21   xbt_init(&argc, argv);
22
23   DEBUG1("val=%d", 1);
24   WARN1("val=%d", 2);
25   CDEBUG2(top, "val=%d%s", 3, "!");
26   CRITICAL6("false alarm%s%s%s%s%s%s", "", "", "", "", "", "!");
27
28   return 0;
29 }