Apache Log4cxx  Version 1.6.0
Loading...
Searching...
No Matches
log4cxx::helpers::System Class Reference

The System class contains several useful class fields and methods. More...

#include <system.h>

Static Public Member Functions

static void addProgramFilePathComponents (Properties &props)
 Add to props the currently executing program file path and the std::filesystem::path decomposition of the currently executing program file path, using the variable names:
static LogString getProperty (const LogString &key)
 The value of the system property associated with key.

Detailed Description

The System class contains several useful class fields and methods.

It cannot be instantiated.

Member Function Documentation

◆ addProgramFilePathComponents()

void log4cxx::helpers::System::addProgramFilePathComponents ( Properties & props)
static

Add to props the currently executing program file path and the std::filesystem::path decomposition of the currently executing program file path, using the variable names:

  • PROGRAM_FILE_PATH
  • PROGRAM_FILE_PATH.ROOT_NAME
  • PROGRAM_FILE_PATH.ROOT_DIRECTORY
  • PROGRAM_FILE_PATH.ROOT_PATH
  • PROGRAM_FILE_PATH.RELATIVE_PATH
  • PROGRAM_FILE_PATH.PARENT_PATH
  • PROGRAM_FILE_PATH.FILENAME
  • PROGRAM_FILE_PATH.STEM
  • PROGRAM_FILE_PATH.EXTENSION

◆ getProperty()

LogString log4cxx::helpers::System::getProperty ( const LogString & key)
static

The value of the system property associated with key.

Parameters
keythe name of the system property.
Returns
the string value of the system property.
Exceptions
IllegalArgumentExceptionif key is empty.

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