add formatting to lLogString

This commit is contained in:
2026-05-19 18:33:37 -05:00
parent ba2df46189
commit fbb618711f
3 changed files with 26 additions and 14 deletions

View File

@@ -2,6 +2,9 @@
#define LLog_H
#include "time.h"
#include <stdarg.h>
#define max_string_len 1024
typedef struct {
char *buf;
@@ -41,7 +44,7 @@ int create_timer(Logger* logger);
void start_timer(Logger* logger, int timer_id);
void stop_timer(Logger* logger, int timer_id);
lLogString to_lLogString(const char* string);
lLogString lLogString_new(const char* fmt, ...);
void lLog(Logger logger, enum lLogLevel LOG_LEVEL, lLogString MESSAGE);