Google Cloud C++ Client  0.4.0
C++ Client Library for Google Cloud Platform
Public Member Functions | List of all members
google::cloud::v0::NullStream Struct Reference

Implements operator<< for all types, without any effect. More...

#include <google/cloud/log.h>

Public Member Functions

template<typename T >
NullStreamoperator<< (T)
 Generic do-nothing streaming operator. More...
 

Detailed Description

Implements operator<< for all types, without any effect.

It is desirable to disable at compile-time tracing, debugging, and other low severity messages. The Google Cloud Platform C++ Libraries logging adaptors return an object of this class when the particular log-line is disabled at compile-time.

Definition at line 328 of file log.h.

Member Function Documentation

◆ operator<<()

template<typename T >
NullStream& google::cloud::v0::NullStream::operator<< ( )
inline

Generic do-nothing streaming operator.

Definition at line 331 of file log.h.