RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
24 #ifndef LAUNCHER_PLUGINS_I_LOG_DESTINATION_HPP
25 #define LAUNCHER_PLUGINS_I_LOG_DESTINATION_HPP
27 #include <Noncopyable.hpp>
34 namespace launcher_plugins {
106 virtual void writeLog(
LogLevel in_logLevel,
const std::string& in_message) = 0;
bool isReloadable() const
Gets whether or not the log destination is reloadable.
Definition: ILogDestination.hpp:91
LogLevel m_logLevel
The maximum level of log messages to write for this logger.
Definition: ILogDestination.hpp:117
virtual ~ILogDestination()=default
Virtual destructor to allow for inheritance.
Interface which allows a logger to write a log message to a destination.
Definition: ILogDestination.hpp:40
virtual void writeLog(LogLevel in_logLevel, const std::string &in_message)=0
Writes a message to this log destination.
LogLevel getLogLevel()
Gets the maximum level of logs that will be written to this log destination.
Definition: ILogDestination.hpp:77
virtual void refresh(const RefreshParams &in_refreshParams=RefreshParams())=0
Refresh the log destintation. Ensures that the log does not have any stale file handles.
ILogDestination(const std::string &in_id, LogLevel in_logLevel, LogMessageFormatType in_formatType, bool in_reloadable)
Constructor.
Definition: ILogDestination.hpp:54
LogMessageFormatType m_formatType
The log message format type.
Definition: ILogDestination.hpp:122
LogLevel
Enum which represents the level of detail at which to log messages.
Definition: Logger.hpp:86
A struct encapsulating various params to pass when refreshing log destinations. This carries data tha...
Definition: Logger.hpp:67
LogMessageFormatType getLogMessageFormatType()
Gets the log message format type for this log destination.
Definition: ILogDestination.hpp:84
std::string getId() const
Gets the unique ID of the log destination.
Definition: ILogDestination.hpp:70
Class which can be inherited from to disallow copying of its child classes.
Definition: Noncopyable.hpp:34
bool m_reloadable
Whether or not the log destination is reloadable (i.e. it will be destroyed when the global logger is...
Definition: ILogDestination.hpp:127
LogMessageFormatType
Enum which represents the format type for log messages.
Definition: Logger.hpp:107
std::string m_id
The unique ID of the log destination.
Definition: ILogDestination.hpp:112