Logging and Audit Trail Using the API

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);
 
 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.