Package 'plogr'

Title: The 'plog' C++ Logging Library
Description: A simple header-only logging library for C++. Add 'LinkingTo: plogr' to 'DESCRIPTION', and '#include <plogr.h>' in your C++ modules to use it.
Authors: Kirill Müller [aut, cre], Sergey Podobry [cph] (Author of the bundled plog library)
Maintainer: Kirill Müller <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0
Built: 2024-09-25 06:01:10 UTC
Source: https://github.com/krlmlr/plogr

Help Index


plogr: The 'plog' C++ Logging Library

Description

A simple header-only logging library for C++. Add 'LinkingTo: plogr' to 'DESCRIPTION', and '#include <plogr.h>' in your C++ modules to use it.

Author(s)

Maintainer: Kirill Müller [email protected]

Other contributors:

  • Sergey Podobry (Author of the bundled plog library) [copyright holder]

See Also

Useful links:

Examples

plogr_demo <- Rcpp::cppFunction(depends = "plogr", '
// C++ code begin
#include <plogr.h>

RObject plogr_demo() {
  plog::init_r(plog::info);
  LOG_INFO << "shown";
  LOG_DEBUG << "not shown";
  plog::init_r("DEBUG");
  LOG_DEBUG << "shown now";
  return R_NilValue;
}

#include <Rcpp.h> // not necessary to use plogr
// C++ code end
'
)

plogr_demo()