Class LoggerInitializer
java.lang.Object
com.gsitm.ustra.java.batch.worker.config.LoggerInitializer
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
@Component
public class LoggerInitializer
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
Constructor Summary
ConstructorsConstructorDescriptionLoggerInitializer(LoggerConfig loggerConfig, LogPathGenerator logPathGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
LoggerInitializer
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
initializeLogger
public void initializeLogger()
-