nfd::face::FaceLogHelper< T > Class Template Reference

For internal use by FaceLogging macros. More...

#include <daemon/face/face-common.hpp>

Public Member Functions

 FaceLogHelper (const T &obj1) noexcept
 

Public Attributes

const T & obj
 

Detailed Description

template<typename T>
class nfd::face::FaceLogHelper< T >

For internal use by FaceLogging macros.

FaceLogHelper wraps a reference to Face, LinkService, or Transport object.

std::ostream& operator<<(std::ostream& os, const FaceLogHelper<T>& flh) should be specialized to print "[id=888,local=scheme://local/uri,remote=scheme://remote/uri] " which will appear as part of the log message.

Definition at line 92 of file face-common.hpp.

Constructor & Destructor Documentation

template<typename T >
nfd::face::FaceLogHelper< T >::FaceLogHelper ( const T &  obj1)
inlineexplicitnoexcept

Definition at line 96 of file face-common.hpp.

Member Data Documentation

template<typename T >
const T& nfd::face::FaceLogHelper< T >::obj

Definition at line 102 of file face-common.hpp.