GEOS
LogLevelsRegistry.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 TotalEnergies
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef GEOS_COMMON_LOGLEVELSREGISTRY_HPP
21 #define GEOS_COMMON_LOGLEVELSREGISTRY_HPP
22 
23 #include "common/DataTypes.hpp"
24 #include "common/format/Format.hpp"
25 
26 namespace geos
27 {
28 
33 {
34 public:
35 
41  void addEntry( integer level, std::string_view description );
42 
47  string buildLogLevelDescription() const;
48 
49 private:
50 
55  std::map< integer, std::vector< std::string > > m_logLevelsDescriptions;
56 
57 };
58 
59 }
60 
61 #endif
Keep track of log level documention for a group.
void addEntry(integer level, std::string_view description)
Add a log description for a wrapper.
string buildLogLevelDescription() const
Construct the log level string description for a wrapper.
std::int32_t integer
Signed integer type.
Definition: DataTypes.hpp:82
std::string_view string_view
String type.
Definition: DataTypes.hpp:94