#502 Replaced usages of System.out with logger.

This commit is contained in:
daniel-bryla
2016-10-23 19:59:03 +02:00
parent 4ca205c03c
commit 0438811489
154 changed files with 1155 additions and 792 deletions

View File

@ -22,6 +22,9 @@
*/
package com.iluwatar.chain;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* RequestHandler
@ -29,6 +32,8 @@ package com.iluwatar.chain;
*/
public abstract class RequestHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(RequestHandler.class);
private RequestHandler next;
public RequestHandler(RequestHandler next) {
@ -45,7 +50,7 @@ public abstract class RequestHandler {
}
protected void printHandling(Request req) {
System.out.println(this + " handling request \"" + req + "\"");
LOGGER.info("{} handling request \"{}\"", this, req);
}
@Override