#include <loggingLogTrace.h>
List of all members.
Public Types |
typedef Loki::SmartPtr
< LogTrace, Loki::NoCopy,
Loki::DisallowConversion,
Loki::RejectNull,
Loki::DefaultSPStorage > | LogTraceSmartPtr |
| LogTrace smart pointer.
|
Public Member Functions |
| LogTrace (Logger::LoggerSmartPtr logger, const std::string &method, const std::string &file, unsigned long line) |
| LogTrace (Logger::LoggerSmartPtr logger, const std::string &method) |
virtual | ~LogTrace () |
Protected Member Functions |
virtual void | entryLog (Logger::LoggerSmartPtr logger, std::string method, std::string file, unsigned long line) |
Private Attributes |
Logger::LoggerSmartPtr | logger_m |
| logger reference saved for destructor use
|
std::string | methodName_m |
| method name saved for destructor use
|
std::string | fileName_m |
unsigned long | lineNumber_m |
ACE_Time_Value | start_time |
ACE_Time_Value | end_time |
Detailed Description
LogTrace class that logs an "Entering" message when instantiated and an "Exiting" message when destroyed
Member Typedef Documentation
Constructor & Destructor Documentation
Logging::LogTrace::LogTrace |
( |
Logger::LoggerSmartPtr |
logger, |
|
|
const std::string & |
method, |
|
|
const std::string & |
file, |
|
|
unsigned long |
line | |
|
) |
| | |
Constructor
- Parameters:
-
| logger | Logger to be used |
| method | Name of the method from where the log was published. |
| file | Name of the file from which the log came from. |
| line | Line number from where the log was published. |
Constructor
- Parameters:
-
| logger | Logger to be used |
| method | Name of the method from where the log was published. |
virtual Logging::LogTrace::~LogTrace |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void Logging::LogTrace::entryLog |
( |
Logger::LoggerSmartPtr |
logger, |
|
|
std::string |
method, |
|
|
std::string |
file, |
|
|
unsigned long |
line | |
|
) |
| | [protected, virtual] |
Helper method called by the various constructors to log the trace entry.
- Parameters:
-
| logger | Logger to be used |
| method | Name of the method from where the log was published. |
| file | Name of the file from which the log came from. |
| line | Line number from where the log was published. |
Member Data Documentation
logger reference saved for destructor use
method name saved for destructor use
The documentation for this class was generated from the following file: