26 #include <olp/core/CoreApi.h>
27 #include <olp/core/logging/Appender.h>
28 #include <olp/core/logging/MessageFormatter.h>
45 const std::string& fileName,
bool append =
false,
61 inline const std::string& getFileName()
const;
68 inline bool getAppendFile()
const;
87 std::string m_fileName;
90 std::ofstream m_stream;
108 m_formatter = std::move(formatter);
An appender that prints messages to a file.
Definition: FileAppender.h:35
FileAppender & setMessageFormatter(MessageFormatter formatter)
Sets the message formatter.
Definition: FileAppender.h:106
const MessageFormatter & getMessageFormatter() const
Gets the message formatter.
Definition: FileAppender.h:102
const std::string & getFileName() const
Gets the name of the file.
Definition: FileAppender.h:96
FileAppender(const std::string &fileName, bool append=false, MessageFormatter formatter=MessageFormatter::createDefault())
Creates a FileAppender instance.
bool getAppendFile() const
Checks whether the file has the appender.
Definition: FileAppender.h:100
IAppender & append(const LogMessage &message) override
Appends the message using char strings.
bool isValid() const
Checks whether the stream is open and can be written to.
Appends a message to the log.
Definition: Appender.h:32
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Contains data used for a log message.
Definition: LogMessage.h:31