Public Member Functions | Static Public Attributes | Private Attributes | List of all members
log4cpp::TimeStampComponent Struct Reference
Inheritance diagram for log4cpp::TimeStampComponent:
Inheritance graph
[legend]

Public Member Functions

virtual void append (std::ostringstream &out, const LoggingEvent &event)
 
 TimeStampComponent (std::string timeFormat)
 
- Public Member Functions inherited from log4cpp::PatternLayout::PatternComponent
virtual ~PatternComponent ()
 

Static Public Attributes

static const char *const FORMAT_ABSOLUTE = "%H:%M:%S,%l"
 
static const char *const FORMAT_DATE = "%d %b %Y %H:%M:%S,%l"
 
static const char *const FORMAT_ISO8601 = "%Y-%m-%d %H:%M:%S,%l"
 

Private Attributes

bool _printMicros
 
bool _printMillis
 
std::string _timeFormat1
 
std::string _timeFormat2
 

Detailed Description

Definition at line 130 of file PatternLayout.cpp.

Constructor & Destructor Documentation

log4cpp::TimeStampComponent::TimeStampComponent ( std::string  timeFormat)
inline

Definition at line 135 of file PatternLayout.cpp.

Member Function Documentation

virtual void log4cpp::TimeStampComponent::append ( std::ostringstream out,
const LoggingEvent event 
)
inlinevirtual

Implements log4cpp::PatternLayout::PatternComponent.

Definition at line 168 of file PatternLayout.cpp.

Member Data Documentation

bool log4cpp::TimeStampComponent::_printMicros
private

Definition at line 199 of file PatternLayout.cpp.

bool log4cpp::TimeStampComponent::_printMillis
private

Definition at line 198 of file PatternLayout.cpp.

std::string log4cpp::TimeStampComponent::_timeFormat1
private

Definition at line 196 of file PatternLayout.cpp.

std::string log4cpp::TimeStampComponent::_timeFormat2
private

Definition at line 197 of file PatternLayout.cpp.

const char *const log4cpp::TimeStampComponent::FORMAT_ABSOLUTE = "%H:%M:%S,%l"
static

Definition at line 132 of file PatternLayout.cpp.

const char *const log4cpp::TimeStampComponent::FORMAT_DATE = "%d %b %Y %H:%M:%S,%l"
static

Definition at line 133 of file PatternLayout.cpp.

const char *const log4cpp::TimeStampComponent::FORMAT_ISO8601 = "%Y-%m-%d %H:%M:%S,%l"
static

Definition at line 131 of file PatternLayout.cpp.


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


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00