rules icon indicating copy to clipboard operation
rules copied to clipboard

Help improve logging performance. Debug logging

Open gatling822 opened this issue 7 years ago • 2 comments

`if (log.isLoggable(Level.INFO)) {

  log.info("matched: " + msg);

}

if (log.isLoggable(Level.INFO)) {

  log.info("unmatched: " + msg);

}`

The above log statements could be changed to DEBUG. In my system where there are 100+ rules run against 10,000+ transactions per minute. This log statement quickly takes over all the logs. If you change this log to DEBUG we would be able to keep helpful information like what rules are loaded but the information for which rules are matched is more of a DEBUG information for when we encountered an issue

gatling822 avatar Jan 18 '18 23:01 gatling822

In the mean time, you can set the log level of the rules engine to be a different level than that of the rest of the application. Or set default to be WARN and set your packages to be INFO.

maxant avatar Jan 24 '18 19:01 maxant

btw, we happily accept pull requests

maxant avatar Jan 24 '18 19:01 maxant