GEOS
LogLevelsRegistry.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
19 #ifndef GEOS_COMMON_LOGLEVELSREGISTRY_HPP
20 #define GEOS_COMMON_LOGLEVELSREGISTRY_HPP
21 
22 #include "common/DataTypes.hpp"
23 #include "common/format/Format.hpp"
24 
25 namespace geos
26 {
27 
32 {
33 public:
34 
40  void addEntry( integer level, std::string_view description );
41 
46  string buildLogLevelDescription() const;
47 
48 private:
49 
54  std::map< integer, std::vector< std::string > > m_logLevelsDescriptions;
55 
56 };
57 
58 }
59 
60 #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