Load the primary logger from a Lua script under its default name of logging as global variable.
If it is not set by the user, a default logging level of 1 is assumed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | conf | ||||
integer | :: | rank |
subroutine tem_logging_load_primary( conf, rank ) ! --------------------------------------------------------------------------- !> type(flu_state) :: conf !> integer :: rank ! --------------------------------------------------------------------------- integer :: thandle ! --------------------------------------------------------------------------- call aot_table_open(L = conf, thandle = thandle, key = 'logging') if (thandle == 0) then call tem_logging_init_primary(level = 1, rank = rank) else call tem_logging_load(conf = conf, thandle = thandle, rank = rank) end if call aot_table_close(L = conf, thandle = thandle) end subroutine tem_logging_load_primary