proxygen
LogConfigParser.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017-present Facebook, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <stdexcept>
19 
20 #include <folly/CPortability.h>
21 #include <folly/Range.h>
23 
24 /*
25  * This file contains utility functions for parsing and serializing
26  * LogConfig strings.
27  *
28  * This is separate from the LogConfig class itself, to reduce the dependencies
29  * of the core logging library. Other code that wants to use the logging
30  * library to log messages but does not need to parse log config strings
31  * therefore does not need to depend on the folly JSON library.
32  */
33 
34 namespace folly {
35 
36 struct dynamic;
37 
38 class FOLLY_EXPORT LogConfigParseError : public std::invalid_argument {
39  public:
40  using std::invalid_argument::invalid_argument;
41 };
42 
52 
63 
71 
81 
82 } // namespace folly
—— Concurrent Priority Queue Implementation ——
Definition: AtomicBitSet.h:29
#define FOLLY_EXPORT
Definition: CPortability.h:133
LogConfig parseLogConfig(StringPiece value)
AHArrayT::Config config
LogConfig parseLogConfigDynamic(const dynamic &value)
dynamic logConfigToDynamic(const LogConfig &config)
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
LogConfig parseLogConfigJson(StringPiece value)