summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.c b/main.c
index 8e0efca..97f6d15 100644
--- a/main.c
+++ b/main.c
@@ -42,13 +42,16 @@ int main(int argc, char *argv[])
}
*/
dbg_status_t status = dbg_init(//DBG_FLAG_USE_MUTEX |
- DBG_FLAG_OUTPUT_TO_FILE |
+ //DBG_FLAG_OUTPUT_TO_FILE |
//DBG_FLAG_OUTPUT_TO_FD |
- //DBG_FLAG_OUTPUT_TO_STDOUT |
+ DBG_FLAG_OUTPUT_TO_STDOUT |
//DBG_FLAG_OUTPUT_TO_STDERR |
+ DBG_FLAG_USE_FILTER |
0,
//DBG_OPTION_FD, fd,
- DBG_OPTION_FILENAME, "/tmp/my2.log",
+ //DBG_OPTION_FILENAME, "/tmp/my2.log",
+ DBG_OPTION_FILTER, "-all,+foo",
+
DBG_OPTION_END);
if(status != DBG_STATUS_OK) {
@@ -59,6 +62,8 @@ int main(int argc, char *argv[])
INFO(example, "We are up and running");
DEBUG(example, "Or are we %d?", 42);
+
+ DEBUG(foo, "Or are we %d?", 42);
dbg_close();