Limo

所属分类:其他
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-11-21 17:19:32
上 传 者sh-1993
说明:  一个简单、易于使用的轻量级记录器,专为娱乐而设计
(A simple , easy to use lightweight logger made for fun)

文件列表:
LICENSE (43, 2023-11-26)
limo.h (6858, 2023-11-26)

# Limo A easy to use, free, light weight logger made for fun There is no license Completely usable no strings attached. (Under update everyday) Uses my own custom vector How to start * Download the code * import ```limo.h``` to your project Thats it. Examples ```cpp #include "limo.h" int main() { Limo::init(); return 0; } ``` This is the base Code to start using the library ```Limo::``` Main namspace use this to access all the functions for different types of Logs Success Log ```cpp #include "limo.h" int main() { Limo::init(); Limo::SucessLog("Just a test"); return 0; } ``` Info Log ```cpp #include "limo.h" int main() { Limo::init(); Limo::InfoLog("Just a test"); return 0; } ``` Warning Log ```cpp #include "limo.h" int main() { Limo::init(); Limo::WarningLog("Just a test"); return 0; } ``` Error Log ```cpp #include "limo.h" int main() { Limo::init(); Limo::ErrorLog("Just a test"); return 0; } ``` Logs can contain string, float and int. To clear all logs use ```cpp Limo::Clear(); ``` This library can also save logs just use ```cpp Limo::SaveLog("App.log"); ``` If you forget to Add a filename in log the Logger will make a file name Limbo.log. You also add the path were you want the file to be in the ```Limo::SaveLog()``` function just do this ```Limo::SaveLog("C:\Users\me\Desktop\test.log");``` Full example of the library ```cpp #include "limo.h" int main() { Limo::init(); Limo::ErrorLog("test"); Limo::SucessLog("test"); Limo::WarningLog("test"); Limo::SaveLog(""); return 0; } ``` Using Imgui with the logger to make a simple console ```cpp #include "limo.h" if(ImGui::Begin("Console")) { if (ImGui::ColorButton("Clear", ImVec4(255, 0, 0, 255), ImGuiColorEditFlags_NoTooltip) && Limo::logs.size() >= 0) { Limo::logs.clear(); } for (size_t i = 0; i < logs.GetSize(); ++i) { ImGui::Selectable(logs[i]); } } ```

近期下载者

相关文件


收藏者