Setting Multiple Loggers in Code
To specify multiple loggers using the Flux API, you call Configuration.setLoggerTypes(java.util.Set loggerTypes), where "loggerTypes" is A java.util.Set of flux.logging.LoggerType objects that indicate which loggers the engine should use. For example, to use the Internal Asynchronous and Log4j loggers, you would use the following code:
Configuration config = factory.makeConfiguration(); Set loggers = new HashSet(); loggers.add(LoggerType.INTERNAL_ASYNCHRONOUS); loggers.add(LoggerType.LOG4J); config.setLoggerTypes(loggers); |
Comments
Please sign in to leave a comment.