Abseil Common Libraries (C++) (grcp 依赖)
https://abseil.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tag:
Branch:
Tree:
69947927f9
lts_2018_06_20
lts_2018_12_18
lts_2019_08_08
lts_2020_02_25
lts_2020_09_23
lts_2021_03_24
lts_2021_11_02
lts_2022_06_23
master
20180600
20181200
20181200.1
20190808
20190808.1
20200225
20200225.1
20200225.2
20200225.3
20200923
20200923.1
20200923.2
20200923.3
20210324.0
20210324.1
20210324.2
20210324.rc1
20211102.0
20211102.rc2
20220623.0
20220623.1
20220623.rc1
${ noResults }
abseil-cpp/absl/base/log_severity.cc
28 lines
983 B
28 lines
983 B
|
// Copyright 2017 The Abseil Authors.
|
||
//
|
|||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|||
// you may not use this file except in compliance with the License.
|
|||
// You may obtain a copy of the License at
|
|||
//
|
|||
// https://www.apache.org/licenses/LICENSE-2.0
|
|||
|
//
|
||
// Unless required by applicable law or agreed to in writing, software
|
|||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
// See the License for the specific language governing permissions and
|
|||
// limitations under the License.
|
|||
|
|||
#include "absl/base/log_severity.h"
|
|||
|
|
||
#include <ostream>
|
|||
|
|
||
namespace absl {
|
|||
inline namespace lts_2019_08_08 {
|
|||
|
|
||
std::ostream& operator<<(std::ostream& os, absl::LogSeverity s) {
|
|||
if (s == absl::NormalizeLogSeverity(s)) return os << absl::LogSeverityName(s);
|
|||
return os << "absl::LogSeverity(" << static_cast<int>(s) << ")";
|
|||
}
|
|||
} // inline namespace lts_2019_08_08
|
|||
|
} // namespace absl
|