gelfcpp::decorator::CurrentTimestamp Class Reference

Decorator which appends the current timestamp. More...

#include <Timestamp.hpp>

Public Member Functions

void operator() (GelfMessage &message) const
 Decorator apply operator. More...
 

Static Public Member Functions

static double GetCurrentTime ()
 Returns the current timestamp as UnixTime. More...
 

Detailed Description

Decorator which appends the current timestamp.

Uses UnixTime with sub-second resolution.

Member Function Documentation

static double gelfcpp::decorator::CurrentTimestamp::GetCurrentTime ( )
inlinestatic

Returns the current timestamp as UnixTime.

Returns
unixtime with sub-second resolution
void gelfcpp::decorator::CurrentTimestamp::operator() ( GelfMessage message) const
inline

Decorator apply operator.

Parameters
messagethe message

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