11startContainerWithCustomLoggingConfiguration.bat

[bat]
REM SECTION 3.7.5 OF THE BOOK

REM This batch file launches a JADE container and specifies a configuration
REM file to initialize the logging system of the JVM:
REM The logging configuration file is in standard java.util.Properties format. Refer to the
REM javadoc documentation of the java class java.util.logging.LogManager for detailed information
REM on configuration information and format of this file. In this example the launched JADE
REM container will record only the log messages of the Messaging sub system, i.e.
REM from all the classes in the package jade.core.messaging.

call 01setClassPath
cd ..

del \Q logging.properties
echo handlers = java.util.logging.ConsoleHandler > logging.properties
echo .level = OFF >> logging.properties
echo jade.core.messaging.level = FINEST >> logging.properties

java -Djava.util.logging.config.file=logging.properties jade.Boot -container

del \Q logging.properties
[/bat]