UMPS
The University of Utah Seismograph Stations Message Passing System.
log.hpp
1 #ifndef UMPS_LOGGING_LOG_HPP
2 #define UMPS_LOGGING_LOG_HPP
3 #include <string>
4 #include "umps/logging/level.hpp"
5 namespace UMPS::Logging
6 {
12 class ILog
13 {
14 public:
15  virtual ~ILog() = default;
17  [[nodiscard]] virtual Level getLevel() const noexcept = 0;
19  virtual void error(const std::string &message) = 0;
21  virtual void warn(const std::string &message) = 0;
23  virtual void info(const std::string &message) = 0;
25  virtual void debug(const std::string &message) = 0;
26 };
27 }
28 #endif
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
virtual Level getLevel() const noexcept=0
virtual void info(const std::string &message)=0
Writes an info message.
virtual void error(const std::string &message)=0
Writes an error message.
virtual void warn(const std::string &message)=0
Writes a warning message.
virtual void debug(const std::string &message)=0
Writes a debug message.