SeppahBaws / logtools

A small and simple header-only logging toolset for Windows and Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logtools

A small and simple cross-platform logging toolset.

Features

  • Easy logging
  • Cross-platform for Windows and Linux

Get started

Please note: currently the library is made with C++17 in mind, as that is the main C++ version I'm using for my new projects right now.

  • Go to the releases tab and download the latest version of the library. It should only be a single file called logtools.h

  • Include logtools.h in your project

  • At the start of your program, call Logger::Init(); to initialize the logger.

  • Then you can use the logging functions that the Logger provides:

    • LogTrace(msg) or LogTrace(format, arguments)
    • LogDebug(msg) or LogDebug(format, arguments)
    • LogInfo(msg) or LogInfo(format, arguments)
    • LogWarning(msg) or LogWarning(format, arguments)
    • LogError(msg) or LogError(format, arguments)

For a full demo of what the library can do, please see the main.cpp (logtools/src/main.cpp) file in the repository.

Issues

If you have any troubles setting up or using this library, please create an issue here

About

A small and simple header-only logging toolset for Windows and Linux.

License:MIT License


Languages

Language:C++ 91.5%Language:Lua 6.1%Language:Shell 2.0%Language:Batchfile 0.4%