This class is used to compound all log settings of the application for initializing the log engine.  
 More...
#include <LogSettings.hpp>
 | 
| 
using  | Impl = Log4Arp::LogSettings | 
|   | 
This class is used to compound all log settings of the application for initializing the log engine. 
 
◆ LogSettings() [1/4]
      
        
          | Arp::System::Commons::Diagnostics::Logging::LogSettings::LogSettings  | 
          ( | 
          const String &  | 
          iniFile,  | 
        
        
           | 
           | 
          LogLevel  | 
          logLevel = LogLevel::None  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs an LogSettings instance.
- Parameters
 - 
  
    | iniFile | The ini file to read the log settings from. | 
    | logLevel | The log level of the application. | 
  
   
 
 
◆ LogSettings() [2/4]
      
        
          | Arp::System::Commons::Diagnostics::Logging::LogSettings::LogSettings  | 
          ( | 
          LogLevel  | 
          logLevel,  | 
        
        
           | 
           | 
          bool  | 
          consoleLogging = true,  | 
        
        
           | 
           | 
          const String &  | 
          logFile = String::Empty,  | 
        
        
           | 
           | 
          const String &  | 
          layoutPattern = String::Empty  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs an LogSettings instance.
- Parameters
 - 
  
    | logLevel | The log level of the application. | 
    | logFile | The log file to write the logging to. | 
    | consoleLogging | Enabled logging to the console. | 
    | layoutPattern | The layoout pattern of the log messages. | 
  
   
 
 
◆ LogSettings() [3/4]
  
  
      
        
          | Arp::System::Commons::Diagnostics::Logging::LogSettings::LogSettings  | 
          ( | 
          const LogSettings &  | 
          arg | ) | 
           | 
         
       
   | 
  
default   | 
  
 
Default copy constructor.
- Parameters
 - 
  
  
 
 
 
◆ LogSettings() [4/4]
  
  
      
        
          | Arp::System::Commons::Diagnostics::Logging::LogSettings::LogSettings  | 
          ( | 
          LogSettings &&  | 
          arg | ) | 
           | 
         
       
   | 
  
defaultnoexcept   | 
  
 
Default move constructor.
- Parameters
 - 
  
  
 
 
 
◆ GetImpl()
      
        
          | const LogSettings::Impl & Arp::System::Commons::Diagnostics::Logging::LogSettings::GetImpl  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
For internal use only.
- Returns
 - The impl instance.
 
 
 
◆ GetIniFile()
      
        
          | String Arp::System::Commons::Diagnostics::Logging::LogSettings::GetIniFile  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Gets the path of the logging .ini file.
- Returns
 - String::Empty if the path was not specified, otherwise the specified path.
 
 
 
◆ GetLayoutPattern()
      
        
          | String Arp::System::Commons::Diagnostics::Logging::LogSettings::GetLayoutPattern  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Gets the logging messages layout pattern in log4cplus syntax.
- Returns
 - The specified pattern or a default pattern if it was not specified.
 
 
 
◆ GetLogFile()
      
        
          | String Arp::System::Commons::Diagnostics::Logging::LogSettings::GetLogFile  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Gets the path of the logging output file.
- Returns
 - String::Empty if the path was not specified, otherwise the specified path.
 
 
 
◆ GetRootLogLevel()
      
        
          | LogLevel Arp::System::Commons::Diagnostics::Logging::LogSettings::GetRootLogLevel  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Gets the root log level.
- Returns
 - LogLevel::None if the root log level was not specified, otherwise the specified value. 
 
 
 
◆ HasIniFile()
      
        
          | bool Arp::System::Commons::Diagnostics::Logging::LogSettings::HasIniFile  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Determines if this settings specify the .ini file of the log engine.
- Returns
 true if this settings specify the .ini file of the log engine, otherwise false.
 
 
◆ HasLogFile()
      
        
          | bool Arp::System::Commons::Diagnostics::Logging::LogSettings::HasLogFile  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Determines if this settings specify the logging output file.
- Returns
 true if the logging output file is specified, otherwise false.
 
 
◆ HasRootLogLevel()
      
        
          | bool Arp::System::Commons::Diagnostics::Logging::LogSettings::HasRootLogLevel  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Determines if this settings specify the root log level.
- Returns
 true if the root log level is specified, otherwise false.
 
 
◆ IsConsoleLoggingEnabled()
      
        
          | bool Arp::System::Commons::Diagnostics::Logging::LogSettings::IsConsoleLoggingEnabled  | 
          ( | 
          void  | 
           | ) | 
           const | 
        
      
 
Specifies if console logging should be enabled.
- Returns
 true if console logging should be enabled, otherwise false.
 
 
◆ operator=() [1/2]
Default copy-assignment operator.
- Parameters
 - 
  
  
 
- Returns
 - This instance.
 
 
 
◆ operator=() [2/2]
Default move-assignment operator.
- Parameters
 - 
  
  
 
- Returns
 - This instance.
 
 
 
The documentation for this class was generated from the following files:
- Arp/System/Commons/Diagnostics/Logging/LogSettings.hpp
 
- Arp/System/Commons/Diagnostics/Logging/LogSettings.cpp