Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
logformatter Namespace Reference

Namespace for log formatters. More...

Functions

std::string style0_formatter_full (const logger::ReformatArgs &args)
 Log formatter for style 0, full details.
 
std::string style0_formatter_simple (const logger::ReformatArgs &args)
 Log formatter for style 0, simple details.
 
std::string style1_formatter_full (const logger::ReformatArgs &args)
 Log formatter for style 1, full details.
 
std::string style1_formatter_simple (const logger::ReformatArgs &args)
 Log formatter for style 1, simple details.
 
std::string style2_formatter_full (const logger::ReformatArgs &args)
 Log formatter for style 2, full details.
 
std::string style2_formatter_simple (const logger::ReformatArgs &args)
 Log formatter for style 2, simple details.
 
std::string style3_formatter_full (const logger::ReformatArgs &args)
 Log formatter for style 3, full details.
 
std::string style3_formatter_simple (const logger::ReformatArgs &args)
 Log formatter for style 3, simple details.
 
std::string style4_formatter_full (const logger::ReformatArgs &args)
 Log formatter for style 3, full details + time.
 
std::string style4_formatter_simple (const logger::ReformatArgs &args)
 Log formatter for style 3, simple details + time.
 
void exception_gen_callback (std::string msg)
 The callback called when an exception is thrown.
 

Detailed Description

Namespace for log formatters.

Function Documentation

◆ exception_gen_callback()

void logformatter::exception_gen_callback ( std::string  msg)

The callback called when an exception is thrown.

This callback is called with the formatted exception message as argument. It is settable with set_exception_gen_callback.

Parameters
msgThe formatted exception message

Definition at line 265 of file change_log_format.cpp.

◆ style0_formatter_full()

std::string logformatter::style0_formatter_full ( const logger::ReformatArgs args)

Log formatter for style 0, full details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 35 of file change_log_format.cpp.

◆ style0_formatter_simple()

std::string logformatter::style0_formatter_simple ( const logger::ReformatArgs args)

Log formatter for style 0, simple details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 47 of file change_log_format.cpp.

◆ style1_formatter_full()

std::string logformatter::style1_formatter_full ( const logger::ReformatArgs args)

Log formatter for style 1, full details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 59 of file change_log_format.cpp.

+ Here is the call graph for this function:

◆ style1_formatter_simple()

std::string logformatter::style1_formatter_simple ( const logger::ReformatArgs args)

Log formatter for style 1, simple details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 77 of file change_log_format.cpp.

◆ style2_formatter_full()

std::string logformatter::style2_formatter_full ( const logger::ReformatArgs args)

Log formatter for style 2, full details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 94 of file change_log_format.cpp.

+ Here is the call graph for this function:

◆ style2_formatter_simple()

std::string logformatter::style2_formatter_simple ( const logger::ReformatArgs args)

Log formatter for style 2, simple details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 113 of file change_log_format.cpp.

◆ style3_formatter_full()

std::string logformatter::style3_formatter_full ( const logger::ReformatArgs args)

Log formatter for style 3, full details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 130 of file change_log_format.cpp.

+ Here is the call graph for this function:

◆ style3_formatter_simple()

std::string logformatter::style3_formatter_simple ( const logger::ReformatArgs args)

Log formatter for style 3, simple details.

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 179 of file change_log_format.cpp.

◆ style4_formatter_full()

std::string logformatter::style4_formatter_full ( const logger::ReformatArgs args)

Log formatter for style 3, full details + time.

Log formatter for style 4, full details + time

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 196 of file change_log_format.cpp.

+ Here is the call graph for this function:

◆ style4_formatter_simple()

std::string logformatter::style4_formatter_simple ( const logger::ReformatArgs args)

Log formatter for style 3, simple details + time.

Log formatter for style 4, simple details

Parameters
argsThe arguments for the log formatter
Returns
std::string The formatted log

Definition at line 246 of file change_log_format.cpp.