3 /* log_usage - A test of normal usage of the log facilities */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
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. */
18 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top, "Logging specific to this test");
19 XBT_LOG_NEW_CATEGORY(top, "Useless test channel");
25 static void dolog(const char *settings)
27 INFO1("Test with the settings '%s'", settings);
28 xbt_log_control_set(settings);
31 CDEBUG2(top, "val=%d%s", 3, "!");
32 CRITICAL6("false alarm%s%s%s%s%s%s", "", "", "", "", "", "!");
36 int main(int argc, char **argv)
38 xbt_init(&argc, argv);
42 dolog(" test.thres:info root.thres:info ");
43 dolog(" test.thres:debug ");
44 dolog(" test.thres:verbose root.thres:error ");
45 dolog(" test.thres:critical ");