Search in sources :

Example 11 with LogLevels

use of alma.Logging.LoggingConfigurablePackage.LogLevels in project ACS by ACS-Community.

the class LaserComponent method get_logLevels.

/**
	 * Gets log levels for a particular named logger. If the returned field
	 * LogLevels.useDefault is true, then the logger uses the default levels,
	 * see get_default_logLevels(); otherwise the returned local and remote
	 * levels apply.
	 * <p>
	 * For possible convenience, the default levels are returned in addition to 
	 * setting {@link LogLevels#useDefault} to <code>true</code>.
	 */
public LogLevels get_logLevels(String logger_name) throws LoggerDoesNotExistEx {
    UnnamedLogger xsdLevels = logConfig.getNamedLoggerConfig(logger_name);
    boolean useDefault = !logConfig.hasCustomConfig(logger_name);
    LogLevels ret = AcsLogLevelDefinition.createIdlLogLevelsFromXsd(useDefault, xsdLevels);
    return ret;
}
Also used : UnnamedLogger(alma.maci.loggingconfig.UnnamedLogger) LogLevels(alma.Logging.LoggingConfigurablePackage.LogLevels)

Example 12 with LogLevels

use of alma.Logging.LoggingConfigurablePackage.LogLevels in project ACS by ACS-Community.

the class HibernateWDALImpl method get_default_logLevels.

/**
	 * Gets the log levels of the default logging configuration. These levels
	 * are used by all loggers that have not been configured individually.
	 */
public LogLevels get_default_logLevels() {
    LogLevels logLevels = new LogLevels();
    logLevels.useDefault = false;
    logLevels.minLogLevel = (short) logConfig.getDefaultMinLogLevel().value;
    logLevels.minLogLevelLocal = (short) logConfig.getDefaultMinLogLevelLocal().value;
    return logLevels;
}
Also used : LogLevels(alma.Logging.LoggingConfigurablePackage.LogLevels)

Example 13 with LogLevels

use of alma.Logging.LoggingConfigurablePackage.LogLevels in project ACS by ACS-Community.

the class HibernateWDALImpl method get_logLevels.

/**
	 * Gets log levels for a particular named logger. If the returned field
	 * LogLevels.useDefault is true, then the logger uses the default levels,
	 * see get_default_logLevels(); otherwise the returned local and remote
	 * levels apply.
	 * <p>
	 * For possible convenience, the default levels are returned in addition to 
	 * setting {@link LogLevels#useDefault} to <code>true</code>.
	 */
public LogLevels get_logLevels(String logger_name) throws LoggerDoesNotExistEx {
    UnnamedLogger xsdLevels = logConfig.getNamedLoggerConfig(logger_name);
    boolean useDefault = !logConfig.hasCustomConfig(logger_name);
    LogLevels ret = AcsLogLevelDefinition.createIdlLogLevelsFromXsd(useDefault, xsdLevels);
    return ret;
}
Also used : UnnamedLogger(alma.maci.loggingconfig.UnnamedLogger) LogLevels(alma.Logging.LoggingConfigurablePackage.LogLevels)

Example 14 with LogLevels

use of alma.Logging.LoggingConfigurablePackage.LogLevels in project ACS by ACS-Community.

the class AcsContainer method get_logLevels.

/**
	 * Gets log levels for a particular named logger. If the returned field
	 * LogLevels.useDefault is true, then the logger uses the default levels,
	 * see get_default_logLevels(); otherwise the returned local and remote
	 * levels apply.
	 * <p>
	 * For possible convenience, the default levels are returned in addition to 
	 * setting {@link LogLevels#useDefault} to <code>true</code>.
	 */
public LogLevels get_logLevels(String logger_name) throws LoggerDoesNotExistEx {
    tryToWaitForContainerStart();
    UnnamedLogger xsdLevels = logConfig.getNamedLoggerConfig(logger_name);
    boolean useDefault = !logConfig.hasCustomConfig(logger_name);
    LogLevels ret = AcsLogLevelDefinition.createIdlLogLevelsFromXsd(useDefault, xsdLevels);
    return ret;
}
Also used : UnnamedLogger(alma.maci.loggingconfig.UnnamedLogger) LockableUnnamedLogger(alma.acs.logging.config.LogConfig.LockableUnnamedLogger) LogLevels(alma.Logging.LoggingConfigurablePackage.LogLevels)

Example 15 with LogLevels

use of alma.Logging.LoggingConfigurablePackage.LogLevels in project ACS by ACS-Community.

the class DALImpl method get_logLevels.

/**
	 * Gets log levels for a particular named logger. If the returned field
	 * LogLevels.useDefault is true, then the logger uses the default levels,
	 * see get_default_logLevels(); otherwise the returned local and remote
	 * levels apply.
	 * <p>
	 * For possible convenience, the default levels are returned in addition to 
	 * setting {@link LogLevels#useDefault} to <code>true</code>.
	 */
public LogLevels get_logLevels(String logger_name) throws LoggerDoesNotExistEx {
    UnnamedLogger xsdLevels = logConfig.getNamedLoggerConfig(logger_name);
    boolean useDefault = !logConfig.hasCustomConfig(logger_name);
    LogLevels ret = AcsLogLevelDefinition.createIdlLogLevelsFromXsd(useDefault, xsdLevels);
    return ret;
}
Also used : UnnamedLogger(alma.maci.loggingconfig.UnnamedLogger) LogLevels(alma.Logging.LoggingConfigurablePackage.LogLevels)

Aggregations

LogLevels (alma.Logging.LoggingConfigurablePackage.LogLevels)15 UnnamedLogger (alma.maci.loggingconfig.UnnamedLogger)6 SystemException (org.omg.CORBA.SystemException)3 AcsJCORBAProblemEx (alma.ACSErrTypeCommon.wrappers.AcsJCORBAProblemEx)2 LogConfig (alma.acs.logging.config.LogConfig)2 LogTypeHelper (com.cosylab.logging.engine.log.LogTypeHelper)2 AcsJIllegalArgumentEx (alma.ACSErrTypeCommon.wrappers.AcsJIllegalArgumentEx)1 LoggerDoesNotExistEx (alma.Logging.LoggerDoesNotExistEx)1 LogLvlSelNotSupportedException (alma.acs.gui.loglevel.LogLvlSelNotSupportedException)1 LockableUnnamedLogger (alma.acs.logging.config.LogConfig.LockableUnnamedLogger)1 ArrayList (java.util.ArrayList)1