You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/10/28 18:52:24 UTC

DO NOT REPLY [Bug 37294] New: - Problem with org.apache.log4j.AsyncAppender

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37294>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37294

           Summary: Problem with org.apache.log4j.AsyncAppender
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: pinku_gupta@yahoo.com


Hi,

I was trying to use org.apache.log4j.AsyncAppender as done in 
org.apache.log4j.xml.examples.XMLSample using sample5.xml. I compile the file 
a try to run it. My classpath is 
classpath=C:\work\logging-log4j-1.2.12\src\java;C:\work\logging-log4j-1.2.12
\dist\lib\lo
g4j-1.2.12.jar

And the out put is 
C:\work\logging-log4j-1.2.12\src\java\org\apache\log4j\xml\examples>java 
org.apache.log4j.xml.exampl
es.XMLSample sample5.xml
log4j:WARN Continuable parsing error 5 and column 41
log4j:WARN Attribute "configDebug" must be declared for element 
type "log4j:configuration".
log4j:WARN The "configDebug" attribute is deprecated.
log4j:WARN Use the "debug" attribute instead.
log4j: Threshold ="null".
log4j: Level value for root is  [debug].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.AsyncAppender]
log4j: Attaching appender named [TEMP] to appender named [ASYNC].
log4j: Class name: [org.apache.log4j.FileAppender]
log4j: Setting property [file] to [temp].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d %-5p [%t] %C{2} (%F:%L) - %
m%n].
log4j: setFile called: temp, true
log4j: setFile ended
log4j: Attaching appender named [CONSOLE] to appender named [ASYNC].
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d %-5p [%t] %C{2} (%F:%L) - %
m%n].
log4j: Adding appender named [ASYNC] to category [root].
2005-10-27 17:32:26,661 DEBUG [main] ? (?:?) - Message 0
2005-10-27 17:32:26,681 WARN  [main] ? (?:?) - Message 1
2005-10-27 17:32:26,681 ERROR [main] ? (?:?) - Message 2
2005-10-27 17:32:26,691 DEBUG [main] ? (?:?) - Message 3
java.lang.Exception: Just testing
        at org.apache.log4j.xml.examples.XMLSample.sample(XMLSample.java:73)
        at org.apache.log4j.xml.examples.XMLSample.main(XMLSample.java:50)

In out put it did not put class, file and line number information.
You can reproduce the same by running the example either in 1.2.x or in 1.3

I would really appreciate any help.

Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org