Giter Club home page Giter Club logo

g2log-dll's Introduction

Summary

This is currently a research on using the wonderful asynchronous C++11 logger g2log in a pre-C++11 project.

For that purpose, g2log is compiled as a dynamically loaded library (shared object on linux).

The goal is to provide the same syntax for logging by means of a header mimicing the g2log api and a binary safe api that will be used to delegate the calls to the g2log in the dll.

Details

Usage

Check out the project into the g2log repository first.

Building is currently supported using Visual Studio 2012 Express using the provided solution, or on linux from the g2log-dll folder:

./premake4 gmake
cd Build
make

When built, the logger can be used by loading the dll using the import library, and on linux by linking with the shared object(?). See vs9test and vs11test/test.cpp

Status

Currently, the simplest form of logging is provided by the file g2log_dll.h. The tests have been performed using various compilers, and the results seem promising - the penalty of crossing the dll boundary seem insignificant at least on my machine.

Contributions are welcome!

Todos

see Issues

Dependencies

  • g2log the logger itself
  • Premake for generating makefiles
  • Boost for cross-compiler testing

Compilers

the resulting dynamic library is known to work with

  • Visual Studio 2008 (Express), 2012 (Express)
  • gcc 4.7.2 (linux,using premake build)

License

Author: Dmitry Ledentsov

MIT License (http://www.opensource.org/licenses/mit-license.php)

dependencies retain their respective licenses

g2log-dll's People

Contributors

d-led avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

kjellkod

g2log-dll's Issues

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.