Setting the log levels using logging.properties file

Log levels may also be manipulated through the use of the logging.properties file.

The following example shows how to configure a FileHandler for the container, "com.adobe.fms.StreamContainer.foo" in the logging.properties file.

com.adobe.fms.module.FileHandler1.pattern = ./logs/debugContainer.%g.log
com.adobe.fms.module.FileHandler1.level = FINEST
com.adobe.fms.module.FileHandler1.formatter = java.util.logging.SimpleFormatter
com.adobe.fms.module.FileHandler1.append = true
com.adobe.fms.module.FileHandler1.limit = 524288000
com.adobe.fms.module.FileHandler1.count = 4
com.adobe.fms.StreamContainer.foo.handlers = com.adobe.fms.module.FileHandler1
com.adobe.fms.StreamContainer.foo.level = FINEST

The following example shows how to configure a FileHandler for the stream "com.adobe.fms.StreamContainer.foo.Stream.Stream1" in thelogging.properties file.

com.adobe.fms.module.FileHandler2.pattern = ./logs/debugStream.%g.log
com.adobe.fms.module.FileHandler2.level = FINEST
com.adobe.fms.module.FileHandler2.formatter = java.util.logging.SimpleFormatter
com.adobe.fms.module.FileHandler2.append = true
com.adobe.fms.module.FileHandler2.limit = 524288000
com.adobe.fms.module.FileHandler2.count = 4
com.adobe.fms.StreamContainer.foo.Stream.stream1.handlers = com.adobe.fms.module.FileHandler2
com.adobe.fms.StreamContainer.foo.Stream.stream1.level = INFO
Note: After updating the logging.properties file, restart the process.