configuration Subroutine

private pure subroutine configuration(self, level)

Get the current logger verbosity configuration

Usage: call my_logger%configuration(level)

TODO: this should be a function

Type Bound

logger_type

Arguments

Type IntentOptional Attributes Name
class(logger_type), intent(in) :: self
integer(kind=default_int), intent(out), optional :: level

Source Code

   pure subroutine configuration(self, level)
      !! Get the current logger verbosity configuration
      !!
      !! Usage: call my_logger%configuration(level)
      !!
      !! TODO: this should be a function
      class(logger_type), intent(in) :: self
      integer(default_int), intent(out), optional :: level
      if (present(level)) level = self%log_level
   end subroutine configuration