public class JMetalLogger extends Object implements Serializable
configureLoggers(File) for configuring the loggers
easily. This method is automatically called before any use of the static
logger, but if you want it to apply on other loggers it is preferable to call
it explicitly at the beginning of your main() method.| Constructor and Description |
|---|
JMetalLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureLoggers(File propertyFile)
This method provides a single-call method to configure the
Logger
instances. |
public static final Logger logger
public static void configureLoggers(File propertyFile) throws IOException
Logger
instances. A default configuration is considered, enriched with a custom
property file for more convenient logging. The custom file is considered
after the default configuration, so it can override it if necessary. The
custom file might be provided as an argument of this method, otherwise we
look for a file named "jMetal.log.ini". If no custom file is provided,
then only the default configuration is considered.propertyFile - the property file to use for custom configuration,
null to use only the default configurationIOExceptionCopyright © 2018. All rights reserved.