aboutsummaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c
new file mode 100644
index 0000000..d8be980
--- /dev/null
+++ b/test/main.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+
+#include "log.h"
+
+int
+main(int argc, char **argv)
+{
+ Log *log = log_create(__FILE__);
+ log_debug(log, "debug log");
+ log_info(log, "info log");
+ log_warn(log, "warning log");
+ log_error(log, "error log");
+
+ return 0;
+}