Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ced1533
commit 191db1d
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/codeforanyone/codergirl/edujavajsp/LoggingTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.codeforanyone.codergirl.edujavajsp; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class LoggingTest { | ||
|
||
public static void main(String[] args) { | ||
Logger logger = LoggerFactory.getLogger(LoggingTest.class); | ||
logger.debug("Hello World"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Set root logger level to default of INFO and its only appender to "con" | ||
log4j.rootLogger=INFO, con | ||
|
||
# con is set to be a ConsoleAppender. | ||
log4j.appender.con=org.apache.log4j.ConsoleAppender | ||
|
||
# con uses PatternLayout. | ||
log4j.appender.con.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.con.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n | ||
|
||
# Override default of INFO to set just this package to level=DEBUG | ||
log4j.logger.com.codeforanyone=DEBUG |
2 changes: 1 addition & 1 deletion
2
...foranyone/codergirl/userwebapp/Start.java → ...foranyone/codergirl/edujavajsp/Start.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters