NutzCN Logo
精华 nutz集成log4j报错(在weblogic上)
发布于 3243天前 作者 jk349262999 2367 次浏览 复制 上一个帖子 下一个帖子
标签:

nutz日志加载log4j在tomcat上正常,部署到weblogic上报错
报错内容

log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
ALL Nutz Log via Log4jLogAdapter
2016-02-05 16:42:31,705 [[STANDBY] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO org.nutz.log.Logs - Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
2016-02-05 16:42:31,876 [[STANDBY] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO org.nutz.filepool.NutFilePool - Init file-pool by: /root/.nutz/tmp/dao/ [200000]
2016-02-05 16:42:31,878 [[STANDBY] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO org.nutz.filepool.NutFilePool - file-pool.cursor: 0
2016-02-05 16:42:31,891 [[STANDBY] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] INFO org.nutz.dao.jdbc.Jdbcs - Get Connection from DataSource for JdbcExpert, if I lock at here, check your database server and configure

3 回复

log4j配置文件发出来

@wendal
log4j.category.org.nutz=INFO, A1

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

@wendal 晕,我明白了,谢 wendal大神!!!

添加回复
请先登陆
回到顶部