Use Java Logger to specify log levels, put several debug statements in FINE log level.