#502 Replaced usages of System.out with logger.
This commit is contained in:
@ -22,6 +22,9 @@
|
||||
*/
|
||||
package com.iluwatar.event.aggregator;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* KingJoffrey observes events from {@link KingsHand}.
|
||||
@ -29,8 +32,10 @@ package com.iluwatar.event.aggregator;
|
||||
*/
|
||||
public class KingJoffrey implements EventObserver {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(KingJoffrey.class);
|
||||
|
||||
@Override
|
||||
public void onEvent(Event e) {
|
||||
System.out.println("Received event from the King's Hand: " + e.toString());
|
||||
LOGGER.info("Received event from the King's Hand: {}", e.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user