aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/log.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/log.c b/tests/log.c
new file mode 100644
index 0000000..e4d1c1e
--- /dev/null
+++ b/tests/log.c
@@ -0,0 +1,22 @@
+#include <log.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+void urmom() {
+ LERRV("This is error!");
+ LERRV("How could this be!");
+ LERRV("Impossible...");
+}
+
+int main() {
+ LDEBUGV("1st debug message");
+ LDEBUGF("Formatted message: %i, %.2f", 69, 420.69696969);
+ LINFOVF("literally checking %s", "colors");
+ open("/dev/asdjasfhkd", O_RDWR);
+ LWARNPV("open");
+ write(696969696, "", 1203192391823);
+ LERRP("write");
+ urmom();
+ LCRIT(1, "This is considered critical");
+}