warning Subroutine

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

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

Usage: call my_logger%warning(“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

Source Code

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