public static void logLevel ( String level ) { if ( ! Arrays . asList ( "TRACE" , "DEBUG" , "INFO" , "WARN" , "ERROR" , "OFF" ) . contains ( level ) ) { throw new IllegalArgumentException ( "log level \"" + level + "\" is not legal it must be one of \"TRACE\", \"DEBUG\", \"INFO\", \"WARN\", \"ERROR\", \"OFF\"" ) ; } System . setProperty ( MOCKSERVER_LOG_LEVEL , level ) ; MockServerLogger . initialiseLogLevels ( ) ; }
Override the default logging level of INFO