private static void initializeLogging ( ) { try { String mdwLogLevel = LoggerUtil . initializeLogging ( ) ; if ( mdwLogLevel != null ) { LoggerContext loggerContext = ( LoggerContext ) LoggerFactory . getILoggerFactory ( ) ; loggerContext . getLogger ( "com.centurylink.mdw" ) . setLevel ( Level . toLevel ( mdwLogLevel . toLowerCase ( ) ) ) ; } } catch ( IOException ex ) { ex . printStackTrace ( ) ; } }
Make zero - config logback logging honor mdw . logging . level in mdw . yaml .