14 #include "logger_export.hpp" 29 LOGGER_EXPORT
~Line();
47 Line(
const Level & level, std::string context);
49 const Level & level()
const;
51 static std::string currentTimeString(
const std::string & format);
53 std::string string()
const;
62 Line & operator=(
const Line & line) =
default;
64 Line & operator=(
Line && line) =
default;
68 std::string m_context;
69 std::shared_ptr<std::ostringstream> m_stream;
Level
Levels for filtering messages based on importance.
Definition: level.hpp:16
Allows piping content in order to build a log message. Once the object is destroyed, the piped content will be logged to the appropriate outputs.
Definition: line.hpp:21
~Line()
Logs all contents previously piped into the object to the outputs.
Line & operator<<(T value)
Add content to the log message.
Definition: line.hpp:38
Logger namespace. Contains all available functions and classes.
Definition: level.hpp:11