Logo AND Algorithmique Numérique Distribuée

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