This class represents the location of a logging statement.  
 More...
#include <locationinfo.h>
 | 
| static const char *const  | NA | 
|   | When location information is not available the constant NA is returned.  
  | 
|   | 
| static const char *const  | NA_METHOD | 
|   | 
This class represents the location of a logging statement. 
 
◆ LocationInfo() [1/3]
      
        
          | log4cxx::spi::LocationInfo::LocationInfo  | 
          ( | 
          const char *const  | 
          fileName,  | 
        
        
           | 
           | 
          const char *const  | 
          shortFileName,  | 
        
        
           | 
           | 
          const char *const  | 
          functionName,  | 
        
        
           | 
           | 
          int  | 
          lineNumber  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ LocationInfo() [2/3]
      
        
          | log4cxx::spi::LocationInfo::LocationInfo  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ LocationInfo() [3/3]
      
        
          | log4cxx::spi::LocationInfo::LocationInfo  | 
          ( | 
          const LocationInfo &  | 
          src | ) | 
           | 
        
      
 
Copy constructor. 
- Parameters
 - 
  
  
 
 
 
◆ calcShortFileName()
  
  
      
        
          | static const char * log4cxx::spi::LocationInfo::calcShortFileName  | 
          ( | 
          const char *  | 
          fileName | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
The part of fileName after the path. 
Implemented to allow compile-time evaluation when called with a literal string 
 
 
◆ clear()
      
        
          | void log4cxx::spi::LocationInfo::clear  | 
          ( | 
           | ) | 
           | 
        
      
 
Resets location info to default state. 
 
 
◆ getClassName()
      
        
          | const std::string log4cxx::spi::LocationInfo::getClassName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return the class name of the call site. 
 
 
◆ getFileName()
      
        
          | const char * log4cxx::spi::LocationInfo::getFileName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return the file name of the caller. 
- Returns
 - file name, may be null. 
 
 
 
◆ getLineNumber()
      
        
          | int log4cxx::spi::LocationInfo::getLineNumber  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns the line number of the caller. 
- Returns
 - line number, -1 if not available. 
 
 
 
◆ getLocationUnavailable()
  
  
      
        
          | static const LocationInfo & log4cxx::spi::LocationInfo::getLocationUnavailable  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ getMethodName()
      
        
          | const std::string log4cxx::spi::LocationInfo::getMethodName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns the method name of the caller. 
 
 
◆ getShortFileName()
      
        
          | const char * log4cxx::spi::LocationInfo::getShortFileName  | 
          ( | 
           | ) | 
           const | 
        
      
 
Return the short file name of the caller. 
- Returns
 - file name. Note that this will fallback to the full filename when using calcShortFileName to calculate the filename at compile-time. 
 
 
 
◆ operator=()
Assignment operator. 
- Parameters
 - 
  
  
 
 
 
◆ NA
  
  
      
        
          | const char* const log4cxx::spi::LocationInfo::NA | 
         
       
   | 
  
static   | 
  
 
When location information is not available the constant NA is returned. 
Current value of this string constant is ?. 
 
 
◆ NA_METHOD
  
  
      
        
          | const char* const log4cxx::spi::LocationInfo::NA_METHOD | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this class was generated from the following file: