  P_MODIFY_DESC: BEGIN
   DECLARE LOG_ID ANCHOR LOGDATA.CONF_LOGGERS.LOGGER_ID;
   DECLARE LVL_ID ANCHOR LOGDATA.LEVELS.LEVEL_ID;
+
+  -- Debug
+  INSERT INTO LOGS (DATE, LEVEL_ID, LOGGER_ID, MESSAGE) VALUES (GENERATE_UNIQUE(), 5, -1, 'aFLAG 5 = ' || coalesce (PARENT, -1) || '=' || coalesce (LEVEL, -1));
 
   IF (PARENT IS NULL OR PARENT < 0 OR LEVEL IS NULL OR LEVEL < 0) THEN
    SIGNAL SQLSTATE VALUE 'LG002'

     WITH UR;
   IF (RET IS NULL) THEN
    -- ROOT is not configured, getting the default value.
    SET RET = GET_ROOT_OR_DEFAULT_LEVEL();
   END IF;
  ELSE
   -- Checks if the level is defined in Conf_loggers

 END P_LOGS @

/**
 * Function that returns the default logger level.
 * NOTE: If the levels are changed, this function should reflect those
 * modifications.
 *
 * RETURNS The configuration level for ROOT logger.
 */
ALTER MODULE LOGADMIN ADD
  FUNCTION GET_DEFAULT_LEVEL (
  ) RETURNS ANCHOR LOGDATA.LEVELS.LEVEL_ID
 P_DEFAULT_ROOT: BEGIN
  DECLARE RET ANCHOR LOGDATA.LEVELS.LEVEL_ID;
  DECLARE VALUE ANCHOR LOGDATA.CONFIGURATION.VALUE;

  IF (RET IS NULL) THEN
   SET VALUE = LOGGER.GET_VALUE(DEFAULT_ROOT_LEVEL);
   SET RET = CASE VALUE
