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

Member Function Documentation

◆ operator<<()

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

Generic do-nothing streaming operator.

Definition at line 370 of file log.h.