Giter Club home page Giter Club logo

logger's Introduction

Logger

image

Logger is a c++ library for program logging.

Dependencies

Application uses following software:

  1. gcc 4.8+ or clang 3.4+
  2. cmake 3.2+

Installation

By running the following commands:

git clone https://github.com/rvaser/logger.git logger
cd logger
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

a library name liblogger.a will appear in build/lib directory. Optionally, you can run sudo make install to install logger library to your machine.

Alternatively, add the project to your CMakeLists.txt file with add_subdirectory(vendor/logger EXCLUDE_FROM_ALL) and target_link_libraries(your_exe logger) commands.

Usage

For details on how to use the logger in your code, please look at the examples bellow:

logger::Logger l;
...
// begin logging from this time point
l.log();
...
// print elapsed time from last time point
l.log("Message");

// print elapsed time in form of a progress bar (resets after 20 calls)
while (...) {
    l.bar("Progress bar message");
}
...
// print total elapsed time
l.total("Message");

Contact information

For additional information, help and bug reports please send an email to one of the following: [email protected]

Acknowledgment

This work has been supported in part by Croatian Science Foundation under the projects UIP-2013-11-7353 and IP-2018-01-5886.

logger's People

Contributors

rvaser avatar

Watchers

 avatar  avatar  avatar

logger's Issues

Please tag release

Hi,
logger seems to be used in latest version of racon. I'd like to update the Debian package and thus need to package logger as a separate package per Debian policy. It would help if you could tag a production ready release.
Thanks a lot, Andreas.

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.