Wt  3.7.1
Public Member Functions | List of all members
Wt::WLogEntry Class Reference

A stream-like object for creating an entry in a log file. More...

#include <Wt/WLogger>

Public Member Functions

 WLogEntry (const WLogEntry &from)
 Copy constructor. More...
 
 ~WLogEntry ()
 Destructor.
 
WLogEntryoperator<< (const WLogger::Sep &)
 Writes a field separator. More...
 
WLogEntryoperator<< (const WLogger::TimeStamp &)
 Writes a time stamp in the current field. More...
 
WLogEntryoperator<< (const char *)
 Writes a string in the current field.
 
WLogEntryoperator<< (const std::string &)
 Writes a string in the current field.
 
WLogEntryoperator<< (const WString &)
 Writes a string in the current field.
 
WLogEntryoperator<< (int)
 Writes a number value in the current field.
 
WLogEntryoperator<< (long long)
 Writes a number value in the current field.
 
WLogEntryoperator<< (double)
 Writes a number value in the current field.
 
template<typename T >
WLogEntryoperator<< (T t)
 Writes a value in the current field.
 

Detailed Description

A stream-like object for creating an entry in a log file.

This class is returned by WLogger::entry() and creates a log entry using a stream-like interface.

Constructor & Destructor Documentation

◆ WLogEntry()

Wt::WLogEntry::WLogEntry ( const WLogEntry from)

Copy constructor.

Only the new object can be used, the original object is no longer valid.

Member Function Documentation

◆ operator<<() [1/2]

WLogEntry & Wt::WLogEntry::operator<< ( const WLogger::Sep )

Writes a field separator.

You must separate fields in a single entry using the WLogger::sep constant.

◆ operator<<() [2/2]

WLogEntry & Wt::WLogEntry::operator<< ( const WLogger::TimeStamp )

Writes a time stamp in the current field.

Formats a timestamp (date+time) to the current field.


Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13