Define the severity levels for Google Cloud Platform C++ Libraries logging.
These are modelled after the severity level in syslog(1) and many derived tools.
We force the enum to be represented as an int because we will store the values in an std::atomic<> and the implementations usually optimize std::atomic<int> but not std::atomic<Foo>
Constants
Name
Description
GCP_LS_TRACE
Use this level for messages that indicate the code is entering and leaving functions.
GCP_LS_DEBUG
Use this level for debug messages that should not be present in production.
GCP_LS_INFO
Informational messages, such as normal progress.
GCP_LS_NOTICE
Informational messages, such as unusual, but expected conditions.
GCP_LS_WARNING
An indication of problems, users may need to take action.
GCP_LS_ERROR
An error has been detected.
GCP_LS_CRITICAL
The system is in a critical state, such as running out of local resources.
GCP_LS_ALERT
The system is at risk of immediate failure.
GCP_LS_FATAL
The system is unusable. GCP_LOG(FATAL) will call std::abort().
[[["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-03-05 UTC."],[[["The latest release candidate version is 2.37.0-rc, with version 2.36.0 being the latest non-release-candidate version, and 2.21.0 is the starting version listed in this content."],["This document lists available versions of the Google Cloud C++ libraries from version 2.37.0-rc down to version 2.10.1, providing a detailed history of these releases, with each hyperlinked to its corresponding documentation."],["Google Cloud Platform C++ Libraries define severity levels for logging, including levels such as `GCP_LS_TRACE`, `GCP_LS_DEBUG`, `GCP_LS_INFO`, `GCP_LS_NOTICE`, `GCP_LS_WARNING`, `GCP_LS_ERROR`, `GCP_LS_CRITICAL`, `GCP_LS_ALERT`, `GCP_LS_FATAL`, `GCP_LS_HIGHEST`, `GCP_LS_LOWEST`, and `GCP_LS_LOWEST_ENABLED`."],["The logging severity levels range from `GCP_LS_TRACE` for entering and leaving functions, all the way to `GCP_LS_FATAL` which indicates the system is unusable and will call `std::abort()`."],["The enum for severity levels is forced to be represented as an `int` due to optimization for `std::atomic\u003cint\u003e`, which is typically optimized by implementations unlike other types."]]],[]]