Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log4j.xml warning #7

Closed
ghost opened this issue Nov 19, 2013 · 1 comment
Closed

log4j.xml warning #7

ghost opened this issue Nov 19, 2013 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Nov 19, 2013

The file cannot be validated as the XML definition "D:\gits\mmt\weixin\src\main\resources\log4j.dtd (系统找不到指定的文
件。)" that is specified as describing the syntax of the file cannot be located.

shared/src/main/resource/log4j.properties:

# Output pattern : date [thread] priority category - message   FATAL 0          ERROR 3  WARN 4  INFO 6  DEBUG 7 
log4j.rootLogger=DEBUG, Console

#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %c:%L%x[%t] %-5p- %m%n

#Project defalult level
log4j.logger.lemon.shared=DEBUG

weixin/src/main/resources/log4j.properties:

# Output pattern : date [thread] priority category - message   FATAL 0  ERROR 3  WARN 4  INFO 6  DEBUG 7 
log4j.rootLogger=DEBUG, Console

#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %c:%L%x[%t] %-5p- %m%n

#Project defalult level
log4j.logger.lemon.weixin=DEBUG

yixin/src/main/resources/log4j.properties:

# Output pattern : date [thread] priority category - message   FATAL 0  ERROR 3  WARN 4  INFO 6  DEBUG 7 
log4j.rootLogger=DEBUG, Console

#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %c:%L%x[%t] %-5p- %m%n

#Project defalult level
log4j.logger.lemon.yixin=DEBUG

web/src/main/resources/log4j.properties:

# Output pattern : date [thread] priority category - message   FATAL 0  ERROR 3  WARN 4  INFO 6  DEBUG 7 
log4j.rootLogger=DEBUG, Console

#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %c:%L%x[%t] %-5p- %m%n

#Springframework level
log4j.logger.org.springframework=INFO
log4j.logger.org.springframework.security=DEBUG

#Hibernate level
log4j.logger.org.hibernate.validator=INFO

#Mybatis level
log4j.logger.org.mybatis=INFO

log4j.logger.com.mchange.v2=INFO

log4j.logger.org.apache.velocity=INFO

log4j.logger.org.apache.commons.beanutils=INFO

#Project defalult level
log4j.logger.lemon.web=DEBUG
@cjm0000000
Copy link
Owner

Cancel DTD validation on your IDE.
http://fengshayage.iteye.com/blog/837501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant