Log4j and log4cxx together

Hi,
I'm using RollingFileAppender to append log4j and log4cxx logs in a common log file. This works only for the first log file. But, the subsequent log files which got created when the size exceeds the specified range, does not getting appended the log4cxx logs.
I have referred http://www.dreamcubes.com/blog/?itemid=59#nucleus_cf
Here is my config settings
log4j:
log4j.rootLogger=debug,console,file
log4j.category.com.company.project=debug
# File Appender
# file is set to be a RollingFileAppender.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=project.log
log4j.appender.file.MaxFileSize=100KB
# Keep one backup file
log4j.appender.file.MaxBackupIndex=100
# file uses PatternLayout.
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} - %m%nlog4cxx:
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
     <!-- Output the log message to system console.
     -->
     <appender name="MyConsoleAppender" class="org.apache.log4j.ConsoleAppender">
          <param name="Target" value="System.out"/>
          <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
          </layout>
     </appender>
     <!-- On application startup, a log file named "project.log" will be create if not exist.
          When the log file reach beyond 100KB, it will be renamed "project.log.1", when the log
          index reach "project.log.5", the next rename will be back to "project.log.1" and
          overite the old log.
     -->     
     <appender name="MyRollingAppenderSize" class="org.apache.log4j.RollingFileAppender">
          <param name="file" value="project.log"/>
          <param name="append" value="true"/>
          <param name="MaxFileSize" value="100KB"/>
          <param name="MaxBackupIndex" value="100"/>
          <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
          </layout>
     </appender>
     <!-- Setup the root category, add the appenders and set the default level
          5 level of logging,  ALL < DEBUG < INFO < WARN < ERROR < FATAL
          The root level is set with INFO, which mean any message greater or same
          as INFO will be log down, in this case, DEBUG is not logged.
          To log all regardless of logging level, set <priority value="ALL">
     -->
     <root>
          <priority value="all" />
          <appender-ref ref="MyRollingAppenderSize"/>
          <appender-ref ref="MyConsoleAppender"/>
     </root>
</log4j:configuration>

Logger experts,
First of all, trying to point a common logging file from two different log configuration file is possible?
If this is not at all possible, Keeping the two different log file would work, but it is cumbersome on debugging..
Thanks and Regards,
Ramesh

Similar Messages

  • Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Yes.
    Captfred

  • I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    Your iPod is designed to sync with only one iTunes library at a time.  It will recognize the iTunes library on the PC as a new library.  If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library.  So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • HT1277 I have changed my email account on my computer to imap and 993 but now I'm not receiving any emails. I was originally trying to sinc my ipad and iphone and computer together so when I delete an email it will all delete together. What is the best wa

    I need help to update my email and also to sinc my computer, iphone and ipad together so when I delete my emails they will all disappear together. I got the iphone and ipad to work but cant seem to get the computer to work.

    E-mail provider?
    Troubleshooting sending and receiving email messages

  • How can I run a vga monitor and projector together on my Mac Pro 15"??

    How can I run a vga monitor and projector together on my Mac Pro OSX 15"?

    You can upgrade to Snow Leopard, Lion or Mountain Lion (coming next month), but you need Snow Leopard to upgrade to Lion or Mountain Lion. Check this web to know how to add memory to your computer and the memory that it supports (probably, 3 GB).

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • TS4006 Hi I am having trouble updating my apps I have tried one at a time and all together but they just will not load any ideas would be appreciated

    Hi, I am having trouble updating my apps, I have tried one at time and all together but they just keep on whirring away and nothing happens! any ideas woud be appreciated.

    Suggest you update all these apps on iTune (computer) and sync them to your iPad.

  • How to use external hard drive and iTunes together?

    how to use external hard drive and iTunes together?

    Yes I did get to that part.... I went trough external to retrive itunes folder... When I selected the folder, it said that it was locked, choose another folder... I then went to my external again to my itunes folder and and used command I to see if folder was locked and it wasn't.... it was suggested on another forum to reboot.. which I did and still same problem... All I want to do is link my external hard drive that has my itunes playlist from another Mac to my new one.. and to also use the external as the main source for adding new songs to my playlist...

  • Why can't Adobe Premiere Pro CC 2014 Time remap Audio and Video together?

    In case you didn't notice, my question is WHY.  I don't know why Premiere Pro can't do this.  From what I understand at the moment, the only way to time-remap audio in any way shape or form using Adobe software is through Adobe After Effects, which my computer has absolutely no chance of running ever.  I know how to do regular stretching of audio in both Audition and Premiere Pro, but apparently I can't time-remap audio using either of these programs.
    So why can't Adobe Premiere Pro time remap audio along with the video?  What's the reason that it can't?  It's a massive disappointment and would be very impressive to see accomplished in the future.  If it's possible to time remap audio and video together in After Effects, that's great and all, except for the fact that I can't use that program.  Why can't it be done in Premiere Pro and will it ever be possible in Premiere Pro?
    Also, will time remapping audio become possible in Audition someday?

    That sounds like a great idea.  File a Feature Request:
    Adobe - Feature Request/Bug Report Form

  • Hi... I am looking for an inexpensive app for my macbook pro that I can put pictures and videos together into a slideshow with captions and music WITHOUT a watermark and that also will burn the slideshow to a DVD in its own app. Help?

    Hi... I am looking for an inexpensive app for my macbook pro that I can put pictures and videos together into a slideshow with captions and music WITHOUT a watermark and that also will burn the slideshow to a DVD in its own app. Help?

    The issue with the A1400 is that like most economy compact cameras, they will not have very fast focus times in indoor lighting situations. Many people have gone to entry level DSLR's (Canon T3i) or micro 4/3 cameras. They are fairly expensive, but a late model refurbished T3i can sometimes be found with a kit lens for about $300.00. With Auto and scene modes, as well as full manual modes, these are very versatile cameras that focus very quickly, even in lower lighting situations. Canon is not really into the micro 4/3 cameras, instead they are focusing on the new G7x and G1x cameras, which are way out of your price range. The A720 is still available used at some places such as KEH camera, but you'll need to check often as their stock changes constantly. Obviously the DSLR's don't use AA batteries, but the T3i is good for about 600 photos (or more) per charge.
    My refurbished DSLR was practically brand new condition when I got it. I could not find any sign of wear at all, so I feel they are a real bargain. These are rugged cameras that are made to last. The A1400 is a $99.00 camera, so it's not intended for heavy usage, plus the image quality of a DSLR (even entry level) is far better than the A1400. That would be my recommendation.
    Steve M.

  • How to keep form field and label together?

    In InDesign Creative Cloud (ID CC), I need to create a 20 page form (a type of questionnaire). As a prelude to doing this, I created a one page form. I am trying to keep labels (text) and fields together, so that if I add a question in the middle of the form, everything else moves down and stays in the correct alignment and relationship. Here is what I tried.
    Option 1: Anchored Fields. I created fields on a "fields" layer and labels on a "text" layer. The text layer generally had tables to help me see where fields should be placed. However, to keep fields and text in the same relationship on the page, I anchored the field to the text. Hoewever, this has the effect of moving the field object into the same layer as the text. When I tried to use the Articles panel to put the fields in correct tab order, I discovered that only fields (unanchored) that were in the forms layer could be dragged into the Articles panel; anchored fields (now in the text layer) could not be dragged into the Articles panel. Why?
    I know that I could also use the Object / Interactive / Set Tabs Order command, but I wanted to use Articles to see how that works.
    In this approach, I also could not figure out how to put underline the text form field
    Option 2: Tabs and Character Styles. I used character styles for underlining by not using tables, but using paragraphs and tabs to align where the fields should be. I applied a character style to a right-justified tab to get the underline. However, using this option, whenever I add a new question (field + label or instruction) in the middle of the form, everything else down on the page goes out of alignment.
    What recommendations do other form designers have? I have been trying to think of how IRS has "dense" or "complex" forms, and how these might be designed in InDesign CC. in order to apply similar techniques to my form design.
    I am running on a Mac, OS X 10.8.4, InDesign CC.

    Unless I am gravely mistaken, isnt this what you want?
    for (int i = 0; i < folderList.size(); i++) {
       String folder = (String) folderList.get(i);
        System.out.println("Folder: " + folder);
        System.out.println ("Messages: " + folderMap.get (folder));
    }

  • How to compare date and time together

    Hi,
    How to compare Date and Time together?
    For example in a database table there are two fields rundate and runtime.  I want to compare these two with perticular date and time in the program.  Like, I want to pull all the records where the records's date and time are less than a perticular date and time in the program.
    Hope the question is clear...
    Thanks.
    Kavita

    Hi Kavita
    There is no as such Date and Time Comparision FM in Standard SAP  But You can define your own like this
    <b>FUNCTION ZAV4_COMPAREDATETIME.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(DATE1) TYPE  DATS
    *"     REFERENCE(TIME1) TYPE  TIMS
    *"     REFERENCE(DATE2) TYPE  DATS
    *"     REFERENCE(TIME2) TYPE  TIMS
    *"  EXPORTING
    *"     VALUE(TWOISMORETOPICAL) TYPE  C
      twoismoretopical = ''.
      if date2 > date1.
        twoismoretopical = 'X'.
      else.
         if date2 = date1 and time2 > time1.
           twoismoretopical = 'X'.
         endif.
      endif.
    ENDFUNCTION.</b>
    Regards
    Mithlesh

  • How can i hold a spot in a clip, let the audio continue for a moment and then resume the clip and audio together?

    how can i hold a spot in a clip, let the audio continue for a moment and then resume the clip and audio together?

    you want to use the retiming tool. you can select what you want to hold, then use the "Hold" command (shift-H) to create a single frame of a default duration, which you can then change to whatever length you want by dragging the retiming handle.
    Here's the page in the help manual that describes the hold feature in detail:
    http://help.apple.com/finalcutpro/mac/10.0/#ver4c2173c9

  • File Sender FCC doesn't allow repetitive segments and unbounded together

    File Sender FCC give me error if I use the repeatitive structure and * (Unbounded) together. Here is the recordset  structure  UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,*,DTM,1 for which I am getting the error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 12: missing structure(s) before type 'DTM' "
    If I use the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,2,DTM,1 then I am able to parse the file. But My requirement is that I will expect variable no of RFF segments in my structure. If you guys could help me that would be great.

    Hi Mohammad
    In this case try to maintain the following in content conversion parameters.
    Key Field Name = Key
    <xml>.fieldFixedLengths      = 1,......................
    <xml>.fieldNames                 = Key,.................
    <xml>.keyFieldValue            = 1
    <xml>.keyFieldInStructure    = ignore
    <xml>.endSeparator            = ,
    Think this should solve your problem.
    Refer the following SAP help link :-
    [http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    -Thanks
      Karthik

  • I have a First Gen IPad with IOS 4.3.2. It let's me manage my music and videos together in playlists.  Need a larger capacity IPAD, that allows me to manage playlists the same way. need direction or help!

    I have a First Gen IPad with IOS 4.3.2. It let's me manage my music and videos together in playlists.  Need a larger capacity IPAD, that allows me to manage playlists the same way. Need direction or help!
    Can't seem to find an IPAD that let's me control my playlists together...or let's me organize my videos (Karaoke) the way I want to.  Can someone help or direct me?
    Can't even find the old IPad for sale...I have a MB292LL with 4.3.2 (8H7)

    Here is a hint, google:
    ipad video playlists
    Found:
    This discusses some options.
    iOS 7 took away the ability to play videos continuously.
    Two stand-alone apps.
    https://itunes.apple.com/us/app/video-playlist-manager-lite/id399302583?mt=8
    https://itunes.apple.com/us/app/joobik-video-playlist-player/id502325425?mt=8
    There was a hint of relabeling your videos to music video so you can use the itunes video playlists.
    I have not tried this.

Maybe you are looking for

  • Sync video with iOS 8 and my iPhone 6 plus.

    I Have a lot of videos in my iTunes library. When I tried to sync some of them on my iPhone 6 plus with iTunes. It doesn't work. ITunes  keep spinning and trying to sync. I've try manually and also with checking boxes for the videos that I wanted. SA

  • NQS ERROR15018

    Answers error: " nQSError: 15018: Incorrectly defined logical table source (for fact table Fact_Sales) does not contain mapping for [Dim_Times.CALENDAR_YEAR]. (HY000) " Could any one guide how to resolve this issue. All the joins in PHYSICAL and BMM

  • Quickview and Movies

    Some of my videos, just music videos convert to ipod ready format fine. But I tryed a movie and it says I need to download more software...it lists 11 different options of what I need to download. Anyone know which one I should pick or how I could ge

  • Bulk load issue

    Hi there Just wanted to know is it a bug or feature - in case if Column store table has non capital letters in its name, then bulk load does not work and performance is ruined? Mike

  • Errors compiling:C:\temp\docroot\3000\default\defaultWebApp\persistence\_pa

    Dear Sir, Iam getting below year while compiling the oracle report 10g. Errors compiling:C:\temp\docroot\3000\default\defaultWebApp\persistence\_pages\\_RC_2g_000405352.java How can i solve this? Pls help me on this issue.. Thanks