Push a new default log PrintFunction onto the KIM API global default log PrintFunction stack. More...
Public Member Functions | |
recursive subroutine | kim_log_push_default_print_function (language_name, fptr) |
Push a new default log PrintFunction onto the KIM API global default log PrintFunction stack. | |
Push a new default log PrintFunction onto the KIM API global default log PrintFunction stack.
Definition at line 113 of file kim_log_module.f90.
recursive subroutine kim_log_module::kim_push_default_print_function::kim_log_push_default_print_function | ( | type(kim_language_name_type), intent(in) | language_name, |
type(c_funptr), intent(in), value | fptr ) |
Push a new default log PrintFunction onto the KIM API global default log PrintFunction stack.
A Fortran routine may provide a KIM::Log::PrintFunction routine. The interface for this is given here (see also KIM::LogPrintFunction, KIM_LogPrintFunction).
The routine must take a c_ptr pointing to a null terminated c string representing the log message. To work with this, the kim_log_module provides a conversion routine: kim_log_module::kim_convert_c_string.
An example log print function, which simply writes log messages to stdout, is given here:
Definition at line 334 of file kim_log_module.f90.