Stay organized with collections Save and categorize content based on your preferences.
Define the class to capture a log message.
Constructors Logger(Severity, char const *, char const *, int, LogSink &) Parameters Name Descriptionseverity
Severity
function
char const *
filename
char const *
lineno
int
sink
LogSink &
bool
LogTo(LogSink &)
Send the log record captured by this object to sink
.
sink
LogSink &
void
Stream()
Return the iostream that captures the log message.
Returns Type Descriptionstd::ostream &
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["This document provides version-specific documentation for the `Logger` class within the Google Cloud C++ client library, with versions ranging from 2.10.1 to 2.37.0-rc, which is the latest version."],["The `Logger` class is used to capture log messages and has several versions, each with potentially different features or fixes as reflected by their respective version numbers."],["The `Logger` class constructor accepts parameters like `Severity`, `function`, `filename`, `lineno`, and `LogSink &` to define the context of a log message."],["The class includes methods such as `enabled()`, which returns a boolean, `LogTo(LogSink &)` for sending the log record, and `Stream()` to get the `std::ostream` for message capture."],["The latest release can be found at the following location: /cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Logger."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4