public static void printVerboseMessage ( final String message , final Logger logger ) { try { if ( JPService . getProperty ( JPVerbose . class ) . getValue ( ) ) { logger . info ( message ) ; } else { logger . debug ( message ) ; } } catch ( final JPServiceException ex ) { logger . info ( message ) ; ExceptionPrinter . printHistory ( "Could not access verbose java property!" , ex , logger ) ; } }
Method prints the given message only in verbose mode on the INFO channel otherwise the DEBUG channel is used for printing .