add logger history
This commit is contained in:
@@ -32,20 +32,27 @@ typedef struct {
|
||||
size_t capacity;
|
||||
lTimer* items;
|
||||
} timer_array;
|
||||
|
||||
int timer_array_append(timer_array* array, lTimer timer);
|
||||
|
||||
typedef struct {
|
||||
size_t count;
|
||||
size_t capacity;
|
||||
lLogString** items;
|
||||
} lLogString_array;
|
||||
int lLogString_array_append(lLogString_array* array, lLogString* string);
|
||||
|
||||
typedef struct {
|
||||
lLogString logfolder;
|
||||
timer_array timers;
|
||||
lLogString_array history;
|
||||
} Logger;
|
||||
|
||||
int create_timer(Logger* logger);
|
||||
void start_timer(Logger* logger, int timer_id);
|
||||
void stop_timer(Logger* logger, int timer_id);
|
||||
|
||||
lLogString lLogString_new(const char* fmt, ...);
|
||||
lLogString* lLogString_new(const char* fmt, ...);
|
||||
|
||||
void lLog(Logger logger, enum lLogLevel LOG_LEVEL, lLogString MESSAGE);
|
||||
int lLog(Logger* logger, enum lLogLevel LOG_LEVEL, lLogString* MESSAGE);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user