#502 Replaced usages of System.out with logger.
This commit is contained in:
@ -23,6 +23,9 @@
|
||||
|
||||
package com.iluwatar.mute;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
@ -46,6 +49,8 @@ import java.sql.SQLException;
|
||||
*/
|
||||
public class App {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
|
||||
|
||||
/**
|
||||
* Program entry point.
|
||||
*
|
||||
@ -88,7 +93,7 @@ public class App {
|
||||
}
|
||||
|
||||
private static void utilizeResource(Resource resource) throws SQLException {
|
||||
System.out.println("Utilizing acquired resource: " + resource);
|
||||
LOGGER.info("Utilizing acquired resource: {}", resource);
|
||||
}
|
||||
|
||||
private static Resource acquireResource() throws SQLException {
|
||||
|
Reference in New Issue
Block a user