log_unit Function

public function log_unit(level) result(unit)

Determine the output unit for a given log level and update LOGGER_OK.

This function returns the Fortran unit where the message should be written, and sets LOGGER_OK to indicate if the log should be written.

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: level

Log level of the message

Return Value integer(kind=i4)

The Fortran output unit (or -1 if logging is disabled)