error Subroutine

private subroutine error(self, message, module, procedure)

Log a message that will only be printed at the error of verbosity

Usage: call my_logger%error(“MESSAGE”)

Type Bound

logger_type

Arguments

Type IntentOptional Attributes Name
class(logger_type), intent(in) :: self
character(len=*), intent(in) :: message
character(len=*), intent(in), optional :: module
character(len=*), intent(in), optional :: procedure

Called by

proc~~error~~CalledByGraph proc~error logger_type%error proc~dispatch dispatch proc~dispatch->proc~error proc~flush_log_buffer flush_log_buffer proc~flush_log_buffer->proc~dispatch

Source Code

   subroutine error(self, message, module, procedure)
      !! Log a message that will only be printed at the error of verbosity
      !!
      !! Usage: call my_logger%error("MESSAGE")
      !!
      class(logger_type), intent(in) :: self
      character(*), intent(in) :: message
      character(*), intent(in), optional :: module, procedure
      call self%log("ERROR", message, module, procedure)
   end subroutine error