summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Moffett <ian@mirocom.org>2026-05-23 01:35:18 -0400
committerIan Moffett <ian@mirocom.org>2026-05-23 01:35:18 -0400
commit0fe401d0a73d545999afccdca08105b3623fb1fe (patch)
treed02fde35992990811f89092ebcde6ebf87b6fd30 /include
parenta356913c397265bc8d9454b0c5dc43c8c898e1b5 (diff)
core: Add logging helpers
Signed-off-by: Ian Moffett <ian@mirocom.org>
Diffstat (limited to 'include')
-rw-r--r--include/cescal/log.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/cescal/log.h b/include/cescal/log.h
new file mode 100644
index 0000000..efa8dfe
--- /dev/null
+++ b/include/cescal/log.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2026, Chloe M.
+ * Provided under the BSD-3 clause
+ */
+
+#ifndef CESCAL_LOG_H
+#define CESCAL_LOG_H 1
+
+#include <stdio.h>
+
+#define cc_trace(fmt, ...) \
+ printf("[\033[34;40mtrace\033[0m]: ", ##__VA_ARGS__)
+#define cc_error(fmt, ...) \
+ printf("[\033[31;40merror\033[0m]: ", ##__VA_ARGS__)
+
+#endif /* !CESCAL_LOG_H */