Git Product home page Git Product logo

qlogsystem's Introduction

This is qlogsystem, welcome.

qlogsystem is a very efficient and easy to use logger library written in C++ (using the Qt framework). qlogsystem brings Java style logger hierarchy to C++ with a very simple API, which makes possible to use it in libraries too. With a proper logger hierarchy log message can be categorized and filtered in run-time. The format of the log messages and the output can be configured and changed separately. qlogsystem is very fast. The log messages and their parameters are evaluated only if the log level is big enough, so debug messages will not affect the performance much. qlogsystem is thread safe, but locking is done only when needed.

Key features:

  • easy to use, simple API
  • convenient log macros (messages with parameters)
  • very fast (late parameter evaluation)
  • threadsafe
  • java style logger hierarchy
  • unique id for log messages
  • log format and log output can be tweaked

Building instructions

Build dependencies:

  • Qt framework

Optional dependencies for coverage results and documentation:

  • lcov, gcov
  • doxygen, graphviz

Steps:

mkdir build && cd build
qmake ../project.pro CONFIG+=release PREFIX=$PWD/install
make
make install

See the documentation for further examples (e.g: how to run the tests.). (make docs)

Installation Instruction (with qpm)

qpm.io

  1. Run qpm install
$ qpm install com.balabit.qlogsystem
  1. Include vendor/vendor.pri in your .pro file
include(vendor/vendor.pri)
  1. Add include statement in your C++ source files
#include <qlogsystem/qlogsystem.hh>

Documentation

See doc/src/main.dox for details.

Licensing

The project is licensed under the LGPL v2.1 license.

Copyright (c) BalaBit IT Ltd, Budapest, Hungary

qlogsystem's People

Contributors

botondp-oneidentity avatar imresteiner avatar la-toth avatar manner82 avatar tomicooler avatar zsofibircher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qlogsystem's Issues

logid-generator.py fails on multi line log messages

Hi,

thanks for this decent log library! I am using it now for a while, I just have a little issue with it: it does not support multi line log messages.
I have log lines like:

log_debug(
CORE,
0,
"my debug log"
);

And it fails. Do you plan to support this scenario?

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.