lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::LoggerEntry Class Reference

#include <LoggerEntry.h>

Inheritance diagram for lintel::LoggerEntry:
lintel::Entry

Public Member Functions

 LoggerEntry (std::string_view component, std::shared_ptr< LoggerConfiguration > loggerConfiguration)
 
 LoggerEntry (std::string_view component, std::shared_ptr< LoggerPathConfiguration > loggerPathConfiguration)
 
bool isLoggerConfiguration () const
 
bool isLoggerPathConfiguration () const
 
const std::shared_ptr< LoggerConfiguration > & getLoggerConfiguration () const
 
const std::shared_ptr< LoggerPathConfiguration > & getLoggerPathConfiguration () const
 
- Public Member Functions inherited from lintel::Entry
 Entry (std::string_view component)
 
constexpr std::string_view getConfigurationParserComponent () const
 

Detailed Description

Configuration entry for a logger or logger path

Constructor & Destructor Documentation

◆ LoggerEntry() [1/2]

lintel::LoggerEntry::LoggerEntry ( std::string_view  component,
std::shared_ptr< LoggerConfiguration >  loggerConfiguration 
)

Construct a logger configuration entry

Parameters
componentThe configuration component name
loggerConfigurationThe logger configuration

◆ LoggerEntry() [2/2]

lintel::LoggerEntry::LoggerEntry ( std::string_view  component,
std::shared_ptr< LoggerPathConfiguration >  loggerPathConfiguration 
)

Construct a logger path configuration entry

Parameters
componentThe configuration component name
loggerPathConfigurationThe logger path configuration

Member Function Documentation

◆ getLoggerConfiguration()

const std::shared_ptr< LoggerConfiguration > & lintel::LoggerEntry::getLoggerConfiguration ( ) const

Get the logger configuration

Returns
The logger configuration

◆ getLoggerPathConfiguration()

const std::shared_ptr< LoggerPathConfiguration > & lintel::LoggerEntry::getLoggerPathConfiguration ( ) const

Get the logger path configuration

Returns
The logger path configuration

◆ isLoggerConfiguration()

bool lintel::LoggerEntry::isLoggerConfiguration ( ) const

Check if this entry contains a logger configuration

Returns
True if this is a logger configuration

◆ isLoggerPathConfiguration()

bool lintel::LoggerEntry::isLoggerPathConfiguration ( ) const

Check if this entry contains a logger path configuration

Returns
True if this is a logger path configuration

The documentation for this class was generated from the following file: