public KieRuntimeLogger build ( KieRuntimeEventManager runtimeEventManager ) { KieRuntimeLogger logger = null ; if ( _loggerType != null && runtimeEventManager != null ) { KieLoggers loggers = KieServices . Factory . get ( ) . getLoggers ( ) ; switch ( _loggerType ) { case CONSOLE : logger = loggers . newConsoleLogger ( runtimeEventManager ) ; break ; case FILE : logger = loggers . newFileLogger ( runtimeEventManager , _log ) ; break ; case THREADED_FILE : logger = loggers . newThreadedFileLogger ( runtimeEventManager , _log , _interval ) ; break ; } } return logger ; }
Builds a KieRuntimeLogger .