Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
printer_base.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
21#include "shambase/print.hpp"
22#include "shambase/string.hpp"
23
24namespace shambase::logs {
25
27 // log message printing
29
37 inline void print() {}
38
52 template<typename T, typename... Types>
56
64 inline void print_ln() {}
65
80 template<typename T, typename... Types>
85
86} // namespace shambase::logs
Namespace containing logs utils.
Definition loglevel.hpp:24
void print()
Prints a log message with no arguments.
std::string format_message()
Formats an empty log message.
Definition msgformat.hpp:37
void print_ln()
Prints a log message with multiple arguments followed by a newline.
void println(std::string_view sv)
Prints a string to the console followed by a newline.
Definition print.cpp:37
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
void print(std::string_view sv)
Prints a string to the console.
Definition print.cpp:30
void flush()
Flushes the output buffer.
Definition print.cpp:44