#include "../include/LLog.h" #include int main(void) { Logger* logger = Logger_new(lLogString_new("./logs"), 1); lLog(logger, lINFO, lLogString_new("Author: %s", LLog_Author)); lLog(logger, lINFO, lLogString_new("Repo: %s", LLog_Repo)); lLog(logger, lINFO, lLogString_new("Version: %s\n", LLog_Version)); lLog(logger, lINFO, lLogString_new("Hello, INFO!")); lLog(logger, lWARNING, lLogString_new("Hello, WARNING!")); lLog(logger, lERROR, lLogString_new("Hello, ERROR!")); lLog(logger, lDEBUG, lLogString_new("Hello, DEBUG!")); int timer = create_timer(logger); lTimespan* time_object = &logger->timers.items[timer].time; start_timer(logger, timer); sleep(2); stop_timer(logger, timer); lLog(logger, lINFO, lLogString_new("%f seconds.", difftime(time_object->end, time_object->start))); }