Struct ILoggerConfig#

Inheritance Relationships#

Derived Type#

Struct Documentation#

struct ILoggerConfig#

Interface to configure the logger.

Subclassed by CLogger

Public Functions

virtual void SetProgramTag(const sdv::u8string &ssTag) = 0#

Initialize the logging from sdv platform abstraction.

This function needs to be called before starting to log.

Parameters:

ssTag[in] Provided tag to create log.

virtual sdv::u8string GetProgramTag() const = 0#

Get the program tag used for logging.

Returns:

The string containing the program tag.

virtual void SetLogFilter(ELogSeverity eSeverity, ELogSeverity eViewSeverity) = 0#

Filter the log messages based on severity.

Parameters:
  • eSeverity[in] The severity level to use as a lowest level for logging. Default is “info” meaning, that debug and trace messages will not be logged.

  • eViewSeverity[in] The severity level to use as a lowest level for viewing. Default is “error” meaning, that debug, trace, info, warning and error messages will not be shown in console output.

virtual ELogSeverity GetLogFilter() const = 0#

Get the current log severity filter level.

Returns:

The severity level of the log filter.

virtual ELogSeverity GetViewFilter() const = 0#

Get the current view severity level.

Returns:

The severity level of the view filter.

void SetProgramTag (in u8string ssTag)

Initialize the logging from sdv platform abstraction.

This function needs to be called before starting to log.

Parameters:

ssTag[in] Provided tag to create log.

u8string GetProgramTag() const

Get the program tag used for logging.

Returns:

The string containing the program tag.

void SetLogFilter (in ELogSeverity eSeverity, in ELogSeverity eViewSeverity)

Filter the log messages based on severity.

Parameters:
  • eSeverity[in] The severity level to use as a lowest level for logging. Default is “info” meaning, that debug and trace messages will not be logged.

  • eViewSeverity[in] The severity level to use as a lowest level for viewing. Default is “error” meaning, that debug, trace, info, warning and error messages will not be shown in console output.

ELogSeverity GetLogFilter() const

Get the current log severity filter level.

Returns:

The severity level of the log filter.

ELogSeverity GetViewFilter() const

Get the current view severity level.

Returns:

The severity level of the view filter.

Public Static Attributes

static constexpr ::sdv::interface_id _id = 0x79E629DFA82E226A#

Interface ID.