      SET MESSAGE_TEXT = 'It is not possible to update the LEVEL_ID manually';
   ELSEIF (N.LOGGER_ID IS NULL) THEN
    SIGNAL SQLSTATE VALUE 'PAILA'
-     SET MESSAGE_TEXT = 'LOGGER_ID IS NULL';
+     SET MESSAGE_TEXT = 'LOGGER_ID IS NULL - TODO';
   END IF;
  END T_UPDATE_DELETE @
 

   -- INSERT INTO LOGS (LEVEL_ID, LOGGER_ID, MESSAGE) VALUES (5, -1, 'tFLAG 8 - ' || coalesce (N.LOGGER_ID, -1));

   -- Gets the value from an ascendency or default.
   SET N.LEVEL_ID = LOGADMIN.GET_DEFINED_PARENT_LOGGER(N.LOGGER_ID);
  ELSE
   -- Gets the value from the configuration. 
   SET N.LEVEL_ID = LEVEL;

    -- Raises an error.
    SIGNAL SQLSTATE VALUE 'LG0C1'
      SET MESSAGE_TEXT = 'The only logger without parent is ROOT';
   ELSEIF (INSERTING) THEN
    SELECT LOGGER_ID INTO LOGGER
      FROM LOGDATA.CONF_LOGGERS
      WHERE LOGGER_ID = 0;
    IF (LOGGER IS NOT NULL) THEN
     -- Raises an error.
     SIGNAL SQLSTATE VALUE 'LG0C3'
       SET MESSAGE_TEXT = 'There could be only one ROOT logger';
    END IF;
   END IF;
  END IF;
  -- Prevents to insert a second logger.
