C++ Boost

Loglite

Introduction

Boost Libraries Index


Overview

Log:
   a written record of events on a voyage (of a ship or plane)
         wordnet.princeton.edu
   a record, as of the performance of a machine or the progress of an undertaking: a computer log; a trip log.
         The American Heritage® Dictionary

  Very complex software need a log mechanism to keep track of their processing flow. Because the more a program gain in line of code, the more bugs will popup. Even if strict verification is ensured, it is inevitable that, on site, problem will arise. The necessity to investiguate and fix those problems cannot be satisfied without a log mechanism allowing to trace execution.

  Simplicity is the key word retained in the design of this library. Because developer will not write logged software if it requires too much attention. Loglite allows you to add a log mechanism to your C++ code with a minimum amount of effort. A macro to initialize the logguer, and another to trace. A log level is provided to introduce a hierarchy in the logs. This allows to treat those logs in different manners. Following your compilation configuration (debug, release), log will appear or not. A level can also be identified with a log class (simple log, warning, error, ...).

  Please report to the tutorial for a quick technical introduction.


Revised 28 March 2007 

© Copyright Jean-Daniel Michaud 2007

Use, modification and distribution are subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)