LCOV - code coverage report
Current view: top level - include/crpropa - Logging.h (source / functions) Coverage Total Hit
Test: coverage.info.cleaned Lines: 0.0 % 18 0
Test Date: 2026-06-18 09:49:19 Functions: 0.0 % 6 0

            Line data    Source code
       1              : #ifndef CRPROPA_LOGGING_H
       2              : #define CRPROPA_LOGGING_H
       3              : 
       4              : #include "crpropa/Version.h"
       5              : 
       6              : #include "kiss/logger.h"
       7              : 
       8              : #include <fstream>
       9              : 
      10              : // make the kiss log functions available in python
      11            0 : void inline logError(const std::string &log) {
      12            0 :         KISS_LOG_ERROR << log;
      13            0 : }
      14              : 
      15            0 : void inline logInfo(const std::string &log) {
      16            0 :         KISS_LOG_INFO << log;
      17            0 : }
      18              : 
      19            0 : void inline logWarning(const std::string &log) {
      20            0 :         KISS_LOG_WARNING << log;
      21            0 : }
      22              : 
      23            0 : void inline logDebug(const std::string &log) {
      24            0 :         KISS_LOG_DEBUG << log;
      25            0 : }
      26              : 
      27            0 : void setLogStream(std::ostream &stream) {
      28            0 :         kiss::Logger::setLogStream(stream);
      29            0 : }
      30              : 
      31            0 : void setLogLevel(int level) {
      32            0 :         kiss::Logger::setLogLevel(static_cast<kiss::eLogLevel>(level));
      33            0 : }
      34              : 
      35              : #endif // CRPROPA_LOGGING_H
        

Generated by: LCOV version 2.0-1