public static LogManagementPlugin getLogManagementPlugin ( ) { final String loggerImpl = org . slf4j . impl . StaticLoggerBinder . getSingleton ( ) . getLoggerFactoryClassStr ( ) ; if ( "Log4jLoggerFactory﻿".e q uals(l o ggerImpl.s u bstring(l o ggerImpl . lastIndexOf ( "." ) + 1 ) ) ) { return new LogManagementPluginLog4jImpl ( ) ; } else if ( loggerImpl . indexOf ( "logback." ) > 1 && "ContextSelectorStaticBinder" . equals ( loggerImpl . substring ( loggerImpl . lastIndexOf ( "." ) + 1 ) ) ) { return new LogManagementPluginLogbackImpl ( ) ; } throw new UnsupportedOperationException ( ) ; }
Get implementation for log management plugin .