 
      -- Checks the values
      CASE APPENDER_ID
-       WHEN 1 THEN -- Pure SQL PL, writes in table.
+       WHEN 1 THEN -- LOG_TABLES/LOG_TABLES_AUTONOMOUS: Pure SQL PL, writes in table.
         -- Internal logging.
         --IF (INTERNAL = TRUE) THEN
         -- INSERT INTO LOGDATA.LOGS (LEVEL_ID, LOGGER_ID, MESSAGE) VALUES

  END IF;

  -- Retrieves the current level in the configuration for the given logger.
  SET LOGGER_DATA = GET_LOGGER_DATA(LOG_ID); -- <<< db2diag
  SET CURRENT_LEVEL_ID = LOGGER_DATA.LEVEL_ID;
  SET HIERARCHY = LOGGER_DATA.HIERARCHY;


        ELSE
         CALL LOG_TABLES(LOG_ID, LEV_ID, NEW_MESSAGE);
        END IF;
       WHEN 0 THEN -- LOG_NULL: Drops the message.
        CALL LOG_NULL(LOG_ID, LEV_ID, NEW_MESSAGE, CONFIGURATION);
       ELSE -- Execute any other appender.
        DYNAMIC : BEGIN
