24namespace shamcomm::logs {
31#define IsActivePrint(_name, StructREF) _name##_ln("xxx", "xxx", "(", "logger::" #_name, ")");
36 raw_ln(
"If you've seen spam in your life i can garantee you, this is worst");
44#define X IsActivePrint
60 auto lines = std::vector<std::string>{
64 "Shamrock rolls - no time for moss.",
65 "Shamrock's live - go with the flow.",
66 "Shamrock - as solid as a rock.",
67 "Shamrock's stable and steady as a rock.",
68 "Shamrock initialized - no cracks in this rock.",
69 "Shamrock is ready to eat cheese (melted) and bread.",
70 "Are you sure you want to work today?",
71 "No holidays for the Shamrock ... (yeah, this was a PhD at some point)",
72 "-[--->+<]>--.>+[----->+++<]>+.-------.++++++++++++.+++++.---.------------.++++++++.",
73 "CPU hours to burn? We don't do such thing here.",
74 "Are you burning GPUs or CPUs today?",
76While you wait for this simulation to run, give that cat a hug!
84 "Shamrock your way to a brighter day!",
85 "Node hours to burn? Leaf it to me.",
86 "Ready for some shamazing simulations?",
91 "We're not here to make seagulls laugh",
95 "Pretty sure Aussies use that too, mate."};
98 auto get_sentence = [&]() {
100 u64 idx =
static_cast<u64>(std::floor(
double f64
Alias for double.
std::uint32_t u32
32 bit unsigned integer
std::uint64_t u64
64 bit unsigned integer
std::string reformat_all(const std::string &color, const char *name, const std::string &module_name, const std::string &content)
Format a log message with all the information.
i8 get_loglevel()
Get the current global log level.
std::string reformat_simple(const std::string &color, const char *name, const std::string &module_name, const std::string &content)
Format a log message with the minimum information.
i32 world_rank()
Gives the rank of the current process in the MPI communicator.
constexpr i8 i8_max
i8 max value
void print_active_level()
Prints the active log levels.
void code_init_done_log()
Indicates that the code initialization is complete through various means ;).
void raw_ln(Types... var2)
Prints a log message with multiple arguments followed by a newline.
void print_faint_row()
Prints a faint separator line to the log.
#define LIST_LEVEL
X-macro for log level definition.
This file contains the definition for the stacktrace related functionality.
f64 get_wtime()
Returns the current wall clock time in seconds.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for debugging memory allocation.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for debugging MPI operations.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for debugging SYCL operations.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for debugging general operations.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for error messages.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for informational messages.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for normal messages.
static constexpr const char * level_name
Log level name.
static std::string reformat(const std::string &in, std::string module_name)
Log formatter function for warning messages.
const std::string reset()
Get the reset terminal escape char.
const std::string col8b_yellow()
Get the yellow terminal escape char.
const std::string col8b_magenta()
Get the magenta (pink) terminal escape char.
const std::string empty()
Get the empty terminal escape.
const std::string blink()
Get the blink terminal escape char.
const std::string col8b_green()
Get the green terminal escape char.
const std::string col8b_blue()
Get the blue terminal escape char.
const std::string col8b_cyan()
Get the cyan terminal escape char.
const std::string col8b_red()
Get the red terminal escape char.
Functions related to the MPI communicator.