[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


jboss - custom appender log4j settings -urgent

Posted on 2006-04-13
Medium Priority
Last Modified: 2011-09-20
Hi All
I am deploying my application on jboss server.I have written a custom appender, which I want to configure in log4j.xml  and I have added that in the following manner: when my server starts up it reads starts up the paender straight away and throws error and hence application is not deployed.As you can see below Iam trying to limit the scope to com.restart.WriteRestartLog class but it does not work any ideas please

<appender name="RESTART" class="com.RestartFileLogAppender">
     <param name="directory" value="${jboss.server.home.dir}"/>
     <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%m%n"/>

   <logger name="com.restart.WriteRestartLog" additivity="false">
      <level value="RESTART"/>
      <appender-ref ref="RESTART"/>

   <category name="com.RestartFileLogAppender">
         <priority value="RESTART"/>
         <appender-ref ref="RESTART"/>
Question by:dmore
1 Comment
LVL 30

Accepted Solution

Mayank S earned 1000 total points
ID: 16451437
>> Iam trying to limit the scope to com.restart.WriteRestartLog

>> class="com.RestartFileLogAppender">
>> name="com.RestartFileLogAppender">

Should that also have com.restart as the package name?

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month19 days, 23 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question