Skip to content

Commit abf72d0

Browse files
committed
Logging section not failing
log4j2.xml is still not being seen, though
1 parent a2cb248 commit abf72d0

15 files changed

Lines changed: 34 additions & 647 deletions

verifying/ConfigureLogging.java

Lines changed: 0 additions & 102 deletions
This file was deleted.

verifying/CustomHandler.java

Lines changed: 0 additions & 47 deletions
This file was deleted.

verifying/InfoLogging.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// {ErrorOutputExpected}
6-
import java.util.logging.*;
6+
import org.apache.logging.log4j.*;
77

88
public class InfoLogging {
9-
private static Logger logger =
10-
Logger.getLogger("InfoLogging");
9+
private static final Logger logger =
10+
LogManager.getLogger(InfoLogging.class);
1111
public static void main(String[] args) {
1212
logger.info("Logging: INFO-level message");
1313
}

verifying/InfoLogging2.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

verifying/LogToFile.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

verifying/LogToFile2.java

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)