Google Cloud C++ Client  2.7.0
C++ Client Library for Google Cloud Platform
Public Member Functions | List of all members
google::cloud::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 368 of file log.h.

Member Function Documentation

◆ operator<<()

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

Generic do-nothing streaming operator.

Definition at line 371 of file log.h.