Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | msg |
Log message to print |
||
character(len=*), | intent(in), | optional | :: | module |
The name of the module in which the call happens |
|
character(len=*), | intent(in), | optional | :: | procedure |
The name of the procedure in which the call happens |
|
logical, | intent(in), | optional | :: | flush_log |
Flush the I/O buffer? |
subroutine log_information(msg, module, procedure, flush_log) character(len=*), intent(in) :: msg !! Log message to print character(len=*), optional, intent(in) :: module !! The name of the module in which the call happens character(len=*), optional, intent(in) :: procedure !! The name of the procedure in which the call happens logical, optional, intent(in) :: flush_log !! Flush the I/O buffer? ! internal logical :: flush_ flush_ = optval(flush_log, .true.) if (logger_is_active) then call logger%log_information(msg, module=module, procedure=procedure) if (flush_) call flush_log_units() else print '("INFO: ",A)', msg end if end subroutine log_information