Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
loglevel.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
20
24namespace shambase::logs {
29 namespace details {
33 inline i8 loglevel = 0;
34 } // namespace details
35
37 // Log level manip
39
45 inline void set_loglevel(i8 val) { details::loglevel = val; }
46
52 inline i8 get_loglevel() { return details::loglevel; }
53} // namespace shambase::logs
std::int8_t i8
8 bit integer
i8 loglevel
Internal variable to store the global log level.
Definition loglevel.hpp:33
Namespace for internal details of the logs module.
Namespace containing logs utils.
Definition loglevel.hpp:24
void set_loglevel(i8 val)
Set the global log level.
Definition loglevel.hpp:45
i8 get_loglevel()
Get the current global log level.
Definition loglevel.hpp:52