Giter Club home page Giter Club logo

logger's Introduction

Xeekworx
Logger

Logger is a single header/source class that you can easily include with your C/C++ project that gives you flexible logging capabilities with an iostream like syntax.

Note: C++11 is required. If you're using Visual Studio 2015, make sure you're on at least Update 2. Some of what's used in C++11 is to convert UTF8/16 strings, but I may replace this later since those features may be deprecated in C++17.

If you want to enable colorized output for the logger then do "#define XWLOG_ENABLE_COLORS 1" just before the inclusion of logger.h. This also means that the rlutil third-party repository will be needed. I may replace that repo with my own code in the future since rlutil is not very well maintained for every platform.

HOW IT WORKS

Preprocessor configurations (#define before including logger.h):

// If you want colorized output, the rlutil third party repository will be required
#define XWLOG_ENALBE_COLORS

// If you want a global log object (xeekworx::log)
#define XWLOG_ENABLE_GLOBALOBJECT

First, you must include "logger.h" and put logger.c in your project, if your build environment hasa project; otherwise just make sure you're compiling with logger.c.

To be continued ...

logger's People

Contributors

xeekworx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.