carl  24.04
Computer ARithmetic Library
carl-logging.cpp
Go to the documentation of this file.
1 #include "carl-logging.h"
2 #include "logging.h"
3 #include "Logger.h"
4 
5 namespace carl {
6 namespace logging {
7 
9 {
10  carl::logging::logger().configure("carl_logfile", "carl.log");
11  carl::logging::logger().filter("carl_logfile")
13  ;
14 
15  carl::logging::logger().configure("stdout", std::cout);
16  carl::logging::logger().filter("stdout")
18 // ("carl.algsubs", carl::logging::LogLevel::LVL_DEBUG)
19 // ("carl.ran", carl::logging::LogLevel::LVL_DEBUG)
20 // ("carl.converter", carl::logging::LogLevel::LVL_DEBUG)
21 // ("carl.poly", carl::logging::LogLevel::LVL_TRACE)
22 // ("carl.ran.realroots", carl::logging::LogLevel::LVL_TRACE)
23 // ("carl.fieldext", carl::logging::LogLevel::LVL_TRACE)
24 // ("carl.formula", carl::logging::LogLevel::LVL_WARN)
25  ;
27 }
28 
29 }
30 }
A small wrapper that configures logging for carl.
carl is the main namespace for the library.
void setInitialLogLevel()
Definition: carl-logging.cpp:8
Logger & logger()
Returns the single global instance of a Logger.
Definition: Logger.h:194
@ LVL_WARN
Potentially harmful situations or undesired states.
void configure(const std::string &id, std::shared_ptr< Sink > sink)
Installs the given sink.
Definition: Logger.h:96
Filter & filter(const std::string &id) noexcept
Retrieves the Filter for some Sink.
Definition: Logger.h:121
void resetFormatter() noexcept
Reconfigures all Formatter objects.
Definition: Logger.h:151