#include <Wt/WLogger>
Public Member Functions | |
WLogEntry (const WLogEntry &from) | |
Copy constructor. | |
~WLogEntry () | |
Destructor. | |
WLogEntry & | operator<< (const WLogger::Sep &) |
Write a field separator. | |
WLogEntry & | operator<< (const WLogger::TimeStamp &) |
Write a time stamp in the current field. | |
WLogEntry & | operator<< (const char *) |
Write a string in the current field. | |
WLogEntry & | operator<< (const std::string &) |
Write a string in the current field. | |
template<typename T> | |
WLogEntry & | operator<< (T t) |
Write a number value in the current field. |
This class is returned by WLogger::entry() and creates a log entry using a stream-like interface.
Wt::WLogEntry::WLogEntry | ( | const WLogEntry & | from | ) |
Copy constructor.
Only the new object can be used, the original object is no longer valid.
WLogEntry & Wt::WLogEntry::operator<< | ( | const WLogger::Sep & | ) |
Write a field separator.
You must separate fields in a single entry using the WLogger::sep constant.
WLogEntry & Wt::WLogEntry::operator<< | ( | const WLogger::TimeStamp & | ) |
Write a time stamp in the current field.
Formats a timestamp (date+time) to the current field.