io.sarl.apputils.bootiqueapp.config
Class LogConfig
All Superinterfaces:
java.lang.Comparable<T>
class LogConfig
extends java.lang.Object
implements java.lang.Comparable<T>
Configuration for the loggers.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
bootiqueapp
Since:
0.12
Property Summary
Modifier and type Property and description
Level level
Replies the level.
java.lang.String logFormat
Replies the format of the log.
Field Summary
Modifier and type Field and description
public static val Level DEFAULT_LEVEL
Default value for the property that contains the logging level.
public static val java.lang.String DEFAULT_LOG_FORMAT
Default conversion pattern for the logger.
public static val java.lang.String LEVEL
Name of the property that contains the logging level.
public static val java.lang.String LOG_FORMAT
Name of the property that contains the log format.
public static val java.lang.String PREFIX
Prefix for the configuration entries of the logger modules.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
int compareTo(LogConfig)
java.util.logging.Logger configureLogger(String)
Configure the given logger from the configuration.
java.util.logging.Logger configureLogger(Logger)
Configure the given logger from the configuration.
boolean equals(Object)
static LogConfig getConfiguration(ConfigurationFactory)
Replies the configuration factory for the logging.
Level getLevel
Replies the level.
java.lang.String getLogFormat
Replies the format of the log.
int hashCode
void setLevel(Level)
Change the level.
void setLogFormat(String)
Change the format of the log.
java.lang.String toString
Property Details
level
var level : Level
Replies the level.

This property is an alias for the action: getLevel

Returns:
the level.
logFormat
var logFormat : java.lang.String
Replies the format of the log.

This property is an alias for the action: getLogFormat

Returns:
the format, never null .
Field Details
DEFAULT_LEVEL
public static val DEFAULT_LEVEL : Level
Default value for the property that contains the logging level.
DEFAULT_LOG_FORMAT
public static val DEFAULT_LOG_FORMAT : java.lang.String = "%-5p %m%n"
Default conversion pattern for the logger.
LEVEL
public static val LEVEL : java.lang.String = "log.level"
Name of the property that contains the logging level.
LOG_FORMAT
public static val LOG_FORMAT : java.lang.String = "log.logFormat"
Name of the property that contains the log format.
PREFIX
public static val PREFIX : java.lang.String = "log"
Prefix for the configuration entries of the logger modules.
Constructor Details
new
new
Action Details
compareTo(LogConfig)
def compareTo(LogConfig) : int
configureLogger(String)
def configureLogger(String) : java.util.logging.Logger
Configure the given logger from the configuration.
Parameters:
loggerName - the name of the logger to configure.
Returns:
the logger.
configureLogger(Logger)
def configureLogger(Logger) : java.util.logging.Logger
Configure the given logger from the configuration.
Parameters:
logger - the logger to configure.
Returns:
the logger.
equals(Object)
def equals(Object) : boolean
getConfiguration(ConfigurationFactory)
def getConfiguration(ConfigurationFactory) : LogConfig
Replies the configuration factory for the logging.
Parameters:
configFactory - the general configuration factory.
Returns:
the logging configuration factory.
getLevel
def getLevel : Level
Replies the level.
Returns:
the level.
getLogFormat
def getLogFormat : java.lang.String
Replies the format of the log.
Returns:
the format, never null .
hashCode
def hashCode : int
setLevel(Level)
def setLevel(Level)
Change the level.
Parameters:
level - the level.
setLogFormat(String)
def setLogFormat(String)
Change the format of the log.
Parameters:
format - the format.
toString
def toString : java.lang.String