logo       

AsyncAppender problem w/ VS8 and CVS head: msg#00013

Subject: AsyncAppender problem w/ VS8 and CVS head
Is there anybody out there that can use the Async Appender in this context:

log4cxx-0.9.8 (downloaded on Feb 3, 2006)
Compiled using VS8

I tried the following configuration:

rootLogger
 |
 +- AsyncAppender
     |
     +- Console Appender
     +- File Appender

I get no error msg, no exception. The DOM configurator simply output the
following traces in the console:

log4cxx: Threshold ="null".
log4cxx: No level could be found named "null".
log4cxx: Level value for root is [debug].
log4cxx: OptionConverter::toLevel: no class name specified, level=[debug]
log4cxx: root level set to DEBUG
log4cxx: Class name: [org.apache.log4j.AsyncAppender]
log4cxx: Attaching appender named [TEMP] to appender named [ASYNC].
log4cxx: Class name: [org.apache.log4j.FileAppender]
log4cxx: Setting option name=[File], value=[eventlog.txt]
log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%t]
%C{2} - %m%n]
log4cxx: Attaching appender named [CONSOLE] to appender named [ASYNC].
log4cxx: Class name: [org.apache.log4j.ConsoleAppender]
log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%t]
%C{2} - %m%n]
log4cxx: Adding appender named [ASYNC] to logger [root].

The logging macros seem to execute without problems, but there's no output
on the console, nor the file.

If I attach the Console Appender and the File Appender directly to the root,
it works fine. The messages are logged in the file and the console.

Here's the xml configuration file for the async appender:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
debug="true">

        <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
                <appender-ref ref="TEMP"/>
                <appender-ref ref="CONSOLE"/>
        </appender>

        <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
                <layout class="org.apache.log4j.PatternLayout">
                     <param name="ConversionPattern" value="%d %-5p [%t] %C{2} 
- %m%n"/>
                </layout>
        </appender>

        <appender name="TEMP" class="org.apache.log4j.FileAppender">
                <param name="File" value="eventlog.txt"/>
                <layout class="org.apache.log4j.PatternLayout">
                     <param name="ConversionPattern" value="%d %-5p [%t] %C{2} 
- %m%n"/>
                </layout>
        </appender>

        <root>
                <priority value="debug"/>
                <appender-ref ref="ASYNC"/>
        </root>
</log4j:configuration>

Thanks for your help.

Stephane Hamel
www.SolVision.net




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe