To intialize the log4j system, create a new file named "log4j.properties" in a directory in the classpath and enter these lines. May be the root directory where your compiled Java classes are in.
# Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n Above sample was taken from the http://logging.apache.org/log4j/docs/manual.html On 7/25/07, Vikram Mandal <[EMAIL PROTECTED]> wrote:
Hi, I am new to Axis, Log4j,... doing java after good long break. I am trying to run one the sample codes "echoString" that comes with axis-1_4. I have set the classpath as mentioned in the doc .. and now I have got : log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle). log4j:WARN Please initialize the log4j system properly.java.net.ConnectException: Connection timed out: connect This seems to be a popular error ...... Google.. but unfortunately I am not able to find a appropriate solution to error with the sample code. Please guide. Thanks and regards, Vikram --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
