DEBUG < INFO < WARN < ERROR
https://logback.qos.ch/manual/configuration.html
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="debug">
<appender-ref ref="STDOUT" />
</root>
</configuration>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="chapters.configuration" level="INFO"/>
<!-- Strictly speaking, the level attribute is not necessary since -->
<!-- the level of the root level is set to DEBUG by default. -->
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
</configuration>
logger.debug(" CreateUserServlet Login 정보 {} , {} : ", user.toString(), "user 정보");
검색어 : logging eclipse template
=>검색 주소 : https://stackoverflow.com/questions/1028858/useful-eclipse-java-code-templates
down voteaccepted
+50 |
The following code templates will both create a logger and create the right imports, if needed. SLF4J
Log4J 2
Log4J
JUL
|
이클립스 환경설정
template 입력
java -> template
이클립스 코드 템플릿(Code Templates) 설정
출처: http://linuxism.tistory.com/486 [linuxism]
https://www.tutorialspoint.com/eclipse/eclipse_code_templates.htm
댓글 ( 4)
댓글 남기기