logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

XML cfg entries for custom levels: msg#00093

apache.logging.log4cxx.user

Subject: XML cfg entries for custom levels

Hi

I've create a custom level, SLevel, similar to one defined in
tests/src/xml/xlevel.h. However, when I tried to get this new level to work,
log4cxx cannot find my class. Below are some settings I tried and the error
returned. I'm using log4cxx 0.9.7.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration debug="true"
xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p %X{Fcn}: %m%n"/>
</layout>
</appender>

<root>
<level value="dump" class="org.apache.log4j.xml.SLevel"/>
</root>
</log4j:configuration>

Threshold ="null".
Level value for root is [DUMP].
Desired Level sub-class: [org.apache.log4j.xml.SLevel]
Could not create level [DUMP]. Reported error follows.
Class 'org.apache.log4j.xml.SLevel' not found

and if I replace the class=="org.apache.log4j.xml.SLevel" with
class="com.spanlink.util.log.SLevel" I get:

Threshold ="null".
Level value for root is [dump].
Desired Level sub-class: [com.spanlink.util.log.SLevel]
Could not create level [dump]. Reported error follows.
Class 'com.spanlink.util.log.SLevel' not found

Note that the second way works with log4j for my custom level implemented in
Java. Can you tell me what I should put in the cfg file?

Thanks,
-Alvin



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo