core: Add logging helpers

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 01:35:18 -04:00
parent a356913c39
commit 0fe401d0a7
2 changed files with 18 additions and 1 deletions
+16
View File
@@ -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 */