summaryrefslogtreecommitdiffstats
path: root/src/lisiblestd/log.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lisiblestd/log.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lisiblestd/log.c b/src/lisiblestd/log.c
new file mode 100644
index 0000000..a28d202
--- /dev/null
+++ b/src/lisiblestd/log.c
@@ -0,0 +1,18 @@
+#include "log.h"
+
+const char *log_level_to_str(LogLevel log_level) {
+ switch (log_level) {
+ case LogLevel_Trace:
+ return "TRACE";
+ case LogLevel_Debug:
+ return "DEBUG";
+ case LogLevel_Warn:
+ return "WARN";
+ case LogLevel_Error:
+ return "ERROR";
+ case LogLevel_Info:
+ default:
+ return "INFO";
+ break;
+ }
+}
Go back to lisible.xyz