numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
log_config.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 MusicScience37 (Kenta Kabashima)
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 */
20#pragma once
21
22#include "num_collect/impl/num_collect_export.h"
25
26namespace num_collect::logging {
27
33[[nodiscard]] NUM_COLLECT_EXPORT auto get_default_tag_config()
35
41NUM_COLLECT_EXPORT void set_default_tag_config(const log_tag_config& config);
42
49[[nodiscard]] NUM_COLLECT_EXPORT auto get_config_of(log_tag_view tag)
51
58NUM_COLLECT_EXPORT void set_config_of(
59 log_tag_view tag, const log_tag_config& config);
60
61} // namespace num_collect::logging
Class to hold configurations for log tags.
Class of tags of logs without memory management.
Definition of log_tag_config class.
Definition of log_tag_view class.
NUM_COLLECT_EXPORT void set_config_of(log_tag_view tag, const log_tag_config &config)
Set the configuration of a tag.
NUM_COLLECT_EXPORT auto get_default_tag_config() -> log_tag_config
Get the default configuration of log tags.
NUM_COLLECT_EXPORT void set_default_tag_config(const log_tag_config &config)
Set the default configuration of log tags.
NUM_COLLECT_EXPORT auto get_config_of(log_tag_view tag) -> log_tag_config
Get the configuration of a tag.