GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PerMalmberg/lout: Logging framework

BranchesTags
Open more actions menu

Latest commit

 

History

80 Commits
80 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea
.idea
 
 
externals
externals
 
 
src
src
 
 
test
test
 
 
vcpkg_triplets
vcpkg_triplets
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.cmakelintrc
.cmakelintrc
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.neocmakelint.toml
.neocmakelint.toml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
CMakePresetsBase.json
CMakePresetsBase.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
vcpkg.json
vcpkg.json
 
 

Repository files navigation

Lout - logging output

A logging framework

Features

  • Customizable log-levels
    • Active levels can be adjusted at run-time.
  • Support for custom output channels (inherit from lout::output::IOutput)
  • Filtering - log messages can be categorized with a custom string which enables filtering on that category.
    • Priority categories - if a message is tagged with a priority category, it will be logged regardless of active level.
  • Operator overloading for short-hand logging.
  • Fallback to std::cerr (or custom stream) in case of issues with getting things written to the output.

Included in the box

  • Output handlers for File, Rolling Files and std::cout.
  • Ready-to-use log levels (Info, Warning, Error, Vebose, Debug).
  • Customizable logging output format
  • Customizable thread synchronization mechanism

##Usage Please see the test project for examples on how to setup, configure and use Lout. Here's a hint though: LoutLogger is the class you want to use. Have a look at the top of the test project for how you can use macros to reduce typing and to define 'named' loggers for different log levels and categories.

##Getting the source The test project uses Catch (https://github.com/philsquared/Catch) for testing and rlutil (https://github.com/tapio/rlutil) for colored output so you need that cloned too.

Use git clone --recursive https://github.com/PerMalmberg/lout.git

Building

Requires a C++ 11 compliant compiler.

Standard CMakeLists.txt files included, directly usable by CLion etc. To compile in MSVC on Windows, do:

cd <path root of project>
mkdir build
cd build
cmake -G "Visual Studio 14 2015" ..

then open the generated solution.

Building boost

For reference, these are the commands I used to build boost filesystem libraries

Linux

./b2 --prefix=/usr/local/boost_1_61_0 --with-libraries=filesystem link=static threading=multi runtime-link=static variant=release

Windows

b2 --with-filesystem variant=release link=static address-model=64 install

About

Logging framework

Topics

logginglogging-library

Resources

Readme
License
Activity

Stars

0 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.