@Component public class LogHandlerImpl extends Object implements LogHandler
Constructor and Description |
---|
LogHandlerImpl(LogPersistenceService logPersistenceService)
Ctr for log handler
|
Modifier and Type | Method and Description |
---|---|
void |
handle(DebugLog log)
Method handling debug log by persisting it to the database.
|
void |
handle(ErrorLog log)
Method handling error log by persisting it to the database.
|
@Autowired public LogHandlerImpl(LogPersistenceService logPersistenceService)
logPersistenceService
- Service that persists the logs and performs other necessary actions tied to doing thatpublic void handle(ErrorLog log)
LogHandler
handle
in interface LogHandler
log
- Error log.public void handle(DebugLog log)
LogHandler
handle
in interface LogHandler
log
- Debug log.Copyright © 2020. All rights reserved.