log4j的问题————急急 5
log4j:ERRORsetFile(null,true)callfailed.java.io.FileNotFoundException:E:\logs\log.log...
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: E:\logs\log.log (系统找不到指定的路径。)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:682)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:88)
at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:107)
log4j:ERROR Either File or DatePattern options are not set for appender [D].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: E:\logs\error.log (系统找不到指定的路径。) 展开
java.io.FileNotFoundException: E:\logs\log.log (系统找不到指定的路径。)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:682)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:88)
at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:107)
log4j:ERROR Either File or DatePattern options are not set for appender [D].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: E:\logs\error.log (系统找不到指定的路径。) 展开
1个回答
展开全部
E:\logs\log.log (系统找不到指定的路径。)
追问
这个是知道的。想知道具体的解决方案。我在该目录下建过对应的文件还是不行。
追答
看下你的当前登录用户在这个目录下是否有读写权限
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
广州市麦修拓包装设备有限公司_
2023-06-12 广告
2023-06-12 广告
暗码,又称秘密代码,是用来表示数字信息的加密编码方式,是一种替代明文的加密方法,也称为数字代码。暗码通常是由一系列的数字或字符组成的,这些数字或字符通常是用户自定义的,并且在使用时进行了特殊的编码,以保证只有授权的人员才能访问这些信息。例如...
点击进入详情页
本回答由广州市麦修拓包装设备有限公司_提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询