1 #ifndef UMPS_LOGGING_STANDARD_OUT_HPP
2 #define UMPS_LOGGING_STANDARD_OUT_HPP
4 #include "umps/logging/log.hpp"
5 namespace UMPS::Logging
17 explicit StandardOut(Logging::Level level = Logging::Level::Info);
44 void error(const std::
string &message) override;
47 void warn(const std::
string &message) override;
50 void info(const std::
string &message) override;
53 void debug(const std::
string &message) override;
55 class StandardOutImpl;
56 std::unique_ptr<StandardOutImpl> pImpl;
Defines the logging level.
This is an abstract base class that allows users to define custom loggers to be used in other applica...
Definition: log.hpp:13
A naive logger that prints all messages to standard out and, in the case of errors,...
Definition: standardOut.hpp:14
void debug(const std::string &message) override
Writes a debug message.
Level getLevel() const noexcept override
StandardOut(const StandardOut &logger)
Copy constructor.
~StandardOut() override
Destructor.
StandardOut & operator=(const StandardOut &logger)
Copy assignment operator.
void info(const std::string &message) override
Writes an info message.
void setLevel(Level level) noexcept
Sets the logging level.
StandardOut(Logging::Level level=Logging::Level::Info)
Constructor.
StandardOut(StandardOut &&logger) noexcept
Move constructor.
void warn(const std::string &message) override
Writes a warning message.
StandardOut & operator=(StandardOut &&logger) noexcept
Move assignment operator.
void error(const std::string &message) override
Writes an error message.