log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
log4j:WARN No such property [target] in org.apache.log4j.FileAppender.
log4j:WARN File option not set for appender [stdout].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
log4j:ERROR No output stream or file set for the appender named [stdout].
ceazer bunny wrote:
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.FileAppender
log4j.appender.stdout.Target=C:\Program Files\Java\jdk1.5.0_11\bin\log\error.log
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.rootLogger=debug, stdout
ceazer bunny wrote:
and the error message
log4j:WARN No such property [target] in org.apache.log4j.FileAppender.
log4j:WARN File option not set for appender [stdout].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
log4j:ERROR No output stream or file set for the appender named [stdout].
Cheers, Martijn,
Twitter.
SCJP, SCWCD.
|Asking Good Questions|
ceazer bunny wrote:hi amit,
i'm in office.
entry to that session is resstricted..
i guess it is regarding coding the codes..
i have done it
Cheers, Martijn,
Twitter.
ceazer bunny wrote:hi martijn,
i tried it but it is not creating any new file in the log folder.
can you just tell me where will be my log file and what will be the name of the log file for the code i have provided.
Thanks in advance
Cheers, Martijn,
Twitter.
....setting the root appender again will mean your previous settings will have no effect.
Don't matter if your code are running, it need to be organized and well done!
Leonardo J. G. Silva
Analyst/Developer
Beware the other head of science - it bites! Nibble on this message:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|