carl  24.04
Computer ARithmetic Library
carl-logging.h File Reference

A small wrapper that configures logging for carl. More...

#include <iostream>
#include "config.h"
#include "logging.h"
Include dependency graph for carl-logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 carl
 carl is the main namespace for the library.
 
 carl::logging
 Contains a custom logging facility.
 

Macros

#define CARL_LOG_FATAL(channel, msg)   std::cerr << (channel) << ": " << msg << std::endl;
 
#define CARL_LOG_ERROR(channel, msg)   std::cerr << (channel) << ": " << msg << std::endl;
 
#define CARL_LOG_WARN(channel, msg)
 
#define CARL_LOG_INFO(channel, msg)
 
#define CARL_LOG_DEBUG(channel, msg)
 
#define CARL_LOG_TRACE(channel, msg)
 
#define CARL_LOG_FUNC(channel, args)
 
#define CARL_LOG_ASSERT(channel, condition, msg)   assert(condition)
 
#define CARL_LOG_NOTIMPLEMENTED()
 
#define CARL_LOG_INEFFICIENT()
 

Functions

void carl::logging::setInitialLogLevel ()
 
void carl::logging::configureLogging ()
 

Detailed Description

A small wrapper that configures logging for carl.

If LOGGING is not set, all logging is disabled.

Note that this header should not be included if you want to use the carl logging facilities yourself. To do that, include logging.h and create logging macros like below for your own application.

If you want to access the internals of the logging, for example to customize the sinks or the filter, include logging-internals.h

Definition in file carl-logging.h.

Macro Definition Documentation

◆ CARL_LOG_ASSERT

#define CARL_LOG_ASSERT (   channel,
  condition,
  msg 
)    assert(condition)

Definition at line 47 of file carl-logging.h.

◆ CARL_LOG_DEBUG

#define CARL_LOG_DEBUG (   channel,
  msg 
)

Definition at line 43 of file carl-logging.h.

◆ CARL_LOG_ERROR

#define CARL_LOG_ERROR (   channel,
  msg 
)    std::cerr << (channel) << ": " << msg << std::endl;

Definition at line 40 of file carl-logging.h.

◆ CARL_LOG_FATAL

#define CARL_LOG_FATAL (   channel,
  msg 
)    std::cerr << (channel) << ": " << msg << std::endl;

Definition at line 39 of file carl-logging.h.

◆ CARL_LOG_FUNC

#define CARL_LOG_FUNC (   channel,
  args 
)

Definition at line 46 of file carl-logging.h.

◆ CARL_LOG_INEFFICIENT

#define CARL_LOG_INEFFICIENT ( )

Definition at line 49 of file carl-logging.h.

◆ CARL_LOG_INFO

#define CARL_LOG_INFO (   channel,
  msg 
)

Definition at line 42 of file carl-logging.h.

◆ CARL_LOG_NOTIMPLEMENTED

#define CARL_LOG_NOTIMPLEMENTED ( )

Definition at line 48 of file carl-logging.h.

◆ CARL_LOG_TRACE

#define CARL_LOG_TRACE (   channel,
  msg 
)

Definition at line 44 of file carl-logging.h.

◆ CARL_LOG_WARN

#define CARL_LOG_WARN (   channel,
  msg 
)

Definition at line 41 of file carl-logging.h.