Interface which allows a logger to write a log message to a destination.
More...
#include <ILogDestination.hpp>
|
std::string | m_id |
| The unique ID of the log destination.
|
|
LogLevel | m_logLevel |
| The maximum level of log messages to write for this logger.
|
|
LogMessageFormatType | m_formatType |
| The log message format type.
|
|
bool | m_reloadable |
| Whether or not the log destination is reloadable (i.e. it will be destroyed when the global logger is reinitialized).
|
|
Interface which allows a logger to write a log message to a destination.
◆ ILogDestination()
rstudio::launcher_plugins::logging::ILogDestination::ILogDestination |
( |
const std::string & |
in_id, |
|
|
LogLevel |
in_logLevel, |
|
|
LogMessageFormatType |
in_formatType, |
|
|
bool |
in_reloadable |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
in_id | The unique ID of this log destination. You must ensure that sufficient uniqueness is provided to ensure no other log destinations attempt to use the same ID, which will prevent them from being registered. |
in_logLevel | The most detailed level of log to be written to this log destination. |
in_formatType | The log message format type. |
in_reloadable | Whether or not the destination is reloadable. If so, reloading of logging configuration will cause the log destination to be removed. Set this to true only for log destinations that are intended to be hot-reconfigurable, such as the global default logger. |
◆ getId()
std::string rstudio::launcher_plugins::logging::ILogDestination::getId |
( |
| ) |
const |
|
inline |
Gets the unique ID of the log destination.
- Returns
- The unique ID of the log destination.
◆ getLogLevel()
LogLevel rstudio::launcher_plugins::logging::ILogDestination::getLogLevel |
( |
| ) |
|
|
inline |
Gets the maximum level of logs that will be written to this log destination.
- Returns
- This log destination's maximum log level.
◆ getLogMessageFormatType()
LogMessageFormatType rstudio::launcher_plugins::logging::ILogDestination::getLogMessageFormatType |
( |
| ) |
|
|
inline |
Gets the log message format type for this log destination.
- Returns
- This log destination's message format type.
◆ isReloadable()
bool rstudio::launcher_plugins::logging::ILogDestination::isReloadable |
( |
| ) |
const |
|
inline |
Gets whether or not the log destination is reloadable.
- Returns
- Whether or not the log destination is reloadable.
◆ refresh()
virtual void rstudio::launcher_plugins::logging::ILogDestination::refresh |
( |
const RefreshParams & |
in_refreshParams = RefreshParams() | ) |
|
|
pure virtual |
◆ writeLog()
virtual void rstudio::launcher_plugins::logging::ILogDestination::writeLog |
( |
LogLevel |
in_logLevel, |
|
|
const std::string & |
in_message |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/IDE/launcher-plugin-sdk/master/sdk/include/logging/ILogDestination.hpp