Logger Derived Type

type, public :: Logger


Inherited by

type~~logger~~InheritedByGraph type~logger Logger type~maplcomponent MaplComponent type~maplcomponent->type~logger logger type~decoratorcomponent DecoratorComponent type~decoratorcomponent->type~maplcomponent decorated type~stubcomponent StubComponent type~stubcomponent->type~maplcomponent type~usercomponent UserComponent type~usercomponent->type~maplcomponent

Type-Bound Procedures

procedure, public :: critical

  • private subroutine critical(this, message, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, unusable, extra, line, file, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout), target :: this
    character(len=*), intent(in) :: message
    class(*), intent(in), optional :: arg1
    class(*), intent(in), optional :: arg2
    class(*), intent(in), optional :: arg3
    class(*), intent(in), optional :: arg4
    class(*), intent(in), optional :: arg5
    class(*), intent(in), optional :: arg6
    class(*), intent(in), optional :: arg7
    class(*), intent(in), optional :: arg8
    class(*), intent(in), optional :: arg9
    class(KeywordEnforcer), intent(in), optional :: unusable
    type(StringUnlimitedMap), intent(in), optional, target :: extra
    integer, intent(in), optional :: line
    character(len=*), intent(in), optional :: file
    integer, intent(out), optional :: rc

procedure, public :: debug

  • private subroutine debug(this, message, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, unusable, extra, line, file, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout), target :: this
    character(len=*), intent(in) :: message
    class(*), intent(in), optional :: arg1
    class(*), intent(in), optional :: arg2
    class(*), intent(in), optional :: arg3
    class(*), intent(in), optional :: arg4
    class(*), intent(in), optional :: arg5
    class(*), intent(in), optional :: arg6
    class(*), intent(in), optional :: arg7
    class(*), intent(in), optional :: arg8
    class(*), intent(in), optional :: arg9
    class(KeywordEnforcer), intent(in), optional :: unusable
    type(StringUnlimitedMap), intent(in), optional, target :: extra
    integer, intent(in), optional :: line
    character(len=*), intent(in), optional :: file
    integer, intent(out), optional :: rc

procedure, public :: error

  • private subroutine error(this, message, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, unusable, extra, line, file, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout), target :: this
    character(len=*), intent(in) :: message
    class(*), intent(in), optional :: arg1
    class(*), intent(in), optional :: arg2
    class(*), intent(in), optional :: arg3
    class(*), intent(in), optional :: arg4
    class(*), intent(in), optional :: arg5
    class(*), intent(in), optional :: arg6
    class(*), intent(in), optional :: arg7
    class(*), intent(in), optional :: arg8
    class(*), intent(in), optional :: arg9
    class(KeywordEnforcer), intent(in), optional :: unusable
    type(StringUnlimitedMap), intent(in), optional, target :: extra
    integer, intent(in), optional :: line
    character(len=*), intent(in), optional :: file
    integer, intent(out), optional :: rc

procedure, public :: free

  • private subroutine free(this)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout) :: this

procedure, public :: info

  • private subroutine info(this, message, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, unusable, extra, line, file, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout), target :: this
    character(len=*), intent(in) :: message
    class(*), intent(in), optional :: arg1
    class(*), intent(in), optional :: arg2
    class(*), intent(in), optional :: arg3
    class(*), intent(in), optional :: arg4
    class(*), intent(in), optional :: arg5
    class(*), intent(in), optional :: arg6
    class(*), intent(in), optional :: arg7
    class(*), intent(in), optional :: arg8
    class(*), intent(in), optional :: arg9
    class(KeywordEnforcer), intent(in), optional :: unusable
    type(StringUnlimitedMap), intent(in), optional, target :: extra
    integer, intent(in), optional :: line
    character(len=*), intent(in), optional :: file
    integer, intent(out), optional :: rc

procedure, public :: isEnabledFor

  • private function isEnabledFor(this, level)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(in) :: this
    integer, intent(in) :: level

    Return Value logical

procedure, public :: warning

  • private subroutine warning(this, message, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, unusable, extra, line, file, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(Logger), intent(inout), target :: this
    character(len=*), intent(in) :: message
    class(*), intent(in), optional :: arg1
    class(*), intent(in), optional :: arg2
    class(*), intent(in), optional :: arg3
    class(*), intent(in), optional :: arg4
    class(*), intent(in), optional :: arg5
    class(*), intent(in), optional :: arg6
    class(*), intent(in), optional :: arg7
    class(*), intent(in), optional :: arg8
    class(*), intent(in), optional :: arg9
    class(KeywordEnforcer), intent(in), optional :: unusable
    type(StringUnlimitedMap), intent(in), optional, target :: extra
    integer, intent(in), optional :: line
    character(len=*), intent(in), optional :: file
    integer, intent(out), optional :: rc

Source Code

   type :: Logger
   contains
      procedure :: debug
      procedure :: info
      procedure :: warning
      procedure :: error
      procedure :: critical
      procedure :: free
      procedure :: isEnabledFor
   end type Logger