Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
e5922d164cc0ac166d07e6e3c7a979ede13db8f8
[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,"Logging specific to this test");
14 XBT_LOG_NEW_CATEGORY(top,"Useless test channel");
15
16 #pragma argsused
17
18 int main(int argc, char **argv)
19 {
20         xbt_init(&argc,argv);
21         
22         DEBUG1("val=%d", 1);
23         WARN1("val=%d", 2);
24         CDEBUG2(top, "val=%d%s", 3, "!");
25         CRITICAL6("false alarm%s%s%s%s%s%s", "","","","","","!");
26         
27         return 0;
28 }
29