How do I specify the location of log4j.log?

I want to create the log4j.log file in "C:\TEMP\" for Windows and "/tmp/" for linux. Is there anyway that I can do to that?
Here is what I currently have for my log4j.properties:
# SET ROOT CATEGORY PRIORITY TO DEBUG AND ONLY APPENDER TO A1, C1, R
log4j.rootCategory=DEBUG, C1, R
log4j.appender.C1=org.apache.log4j.ConsoleAppender
log4j.appender.C1.layout=org.apache.log4j.PatternLayout
log4j.appender.C1.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
#Create the file in Windows
#log4j.appender.R.File=C://TEMP//log4j.log
#Create the file in Linux
log4j.appender.R.File=/tmp/log4j.log
log4j.appender.R.MaxFileSize=15000KB
# KEEP FIVE BACKUP FILES
log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
#log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%nThank You,
Chris

Here is another configuration file that uses multiple appenders.
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=example.log
log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%nIn addition, as the root logger has been allocated a second appender, output will also be directed to the example.log file. This file will be rolled over when it reaches 100KB. When roll-over occurs, the old version of example.log is automatically moved to example.log.1.

Similar Messages

  • How do I specify the location of my aperture file?

    I don't have space on the Macbook for all my music and aperture library so i have the photos on my MacPRO. Now i want to sync some photos to my ipod and appleTV but i cannot find a way to specify where the aperture file is.
    I can find a way to point to the aperture folder, but not the file.
    Anybody got any ideas please?
    Cheers John

    Silly me Just double click the aperture library and hey-presto!!

  • How do I move the location of my log files in WebLogic

    I am using Weblogic on Windows
    I have WebLogic installed on the C: drive
    I want to keep WebLogic on the C: drive, but move my log files to an alternate drive
    How can I do this ?
    Can this be done from the console ?
    Thanks

    You can refer to "Changing the Name and Location of the Server Log File" in the following document :-
    Link : [http://e-docs.bea.com/wls/docs81/ConsoleHelp/logging.html#1050020]
    Link : [http://e-docs.bea.com/wls/docs92/ConsoleHelp/taskhelp/logging/ChangeServerLogFileNamesAndLocations.html]
    Edited by: Manish Chellappan on Jul 14, 2009 8:16 PM

  • HT1277 how do i specify the default mail account

    how do i specify the default mail account if i have more than one accounts?
    Not to worry i have found the setting, thanks
    Message was edited by: Teli Proto

    hmmm.. I've been complaining about this to the engineers for over a year. The storage location should be chooseable as should there also be a backup feature (as in Addressbook and iCal).
    for those that want to change this... it would be cool for someone to write a non cryptic, complete 1,2,3 stepped procedure.
    That is.. exactly what do you change to what in the mail user preference file? And what do you use to change it.. text edit? "[ ]" heretofor = folder
    I would like to change my Mail storage location to the my [Documents] . Using Text Edit, I went into my user [Library], to [Preferences] and opened the com.apple.mail.plist and changed all the ~/Library/mail storage locations to ~/Documents/Mail
    lastly I moved the [Mail] that was in the [Library] to my [Documents].
    Didn't work. Restarting Mail got me into the guided set a new account (and as far as I can see there IS no way of not taking the guided set up as alledged above). There must be something, some built-in direction other than in the [Preferences] defaulting mail to be saved in the [Library] folder
    If someone has done this and been successful.. a 1,2,3.. list would be apprecaited... and please don't leave any details out. Thanks
    dual core Intel G5   Mac OS X (10.4.5)   Pismo powerbook specialist

  • In Mountain Lion, how do I find the location of an open Preview File?  The file "properties" tab is no longer available.

    I typically have several open Preview files at any one time and often forget where, sometimes if, I saved them.  In Mountain Lion, how do I find the location of an open Preview File?  Tried holding option + command in spotlight but I don't see a path name appear anywhere. 

    Yes, cmd-option on a file you choose in Spotlight and the path will appear at the bottom of the Preview window.
    EDIT: Also, if it is bookmarked the path is in Bookmarks.

  • How can I find the location of an app on my iPad 2?

    How can I find the location of an app on my iPad 2? The app comes up with a search, but that seems to be the only way to find it. I just installed the app today, but I can't figure out where it is. It has a pretty distinctive icon, and I've looked through all of my apps and even in folders (even though I don't know how it would have gotten there). I want to put it in an appropriate folder under the right subject, but I can't find it to do this. I can use the app, since I can find it through a search though. I have a lot of apps, but I looked very carefully and can't find it. Is there a way to ask my iPad to locate it for me? It's a $25 app and one I plan to use regularly, so I want it located in the folder of my choice.This problem makes we wonder if I have other "missing" apps, apps that I could  find if I happened to think to search for them, but that don't appear to be on my iPad (even though they actually  are).

    You were right about the homescreens. I had turned my iPad off for the night with less than three full homescreens of loose apps, those not in folders. When I turned the iPad on this morning to try your suggestions, I had five full pages of loose apps. They just appeared when I restarted, and there was the app I was looking for, easy to find. Last night I was deleting apps I decided I wouldn't use, organizing useful apps into folders, and making sure I had as few pages as needed by making sure the gaps made by the moved/deleted apps were closed. The missing apps didn't show up at that point; I was just left with fewer than 11 pages. The apps only showed up when I restarted this morning. There were almost three extra pages of apps that weren't there last night. I know there must be other things missing, since all of the pages are full. So I tried your suggestion in iTunes. I connected my iPad, found an app in the alphabetical list on the left, and double clicked it. This brought me to the app's homescreen (and its home folder when applicable), the place where it was located. In order to identify which page that was, I had to scroll through the screen shots of the homescreens that was below the homescreen that was showing until I found the homescreen whose number was in white. Then I could count the pages on my iPad until I got to that page. I'll have to delete more apps and organize more into folders to see what else might show up. There are just too many apps available for special education, and I'm in the process of figuring out which are the best for my needs. Thanks so much!

  • How can we specify the Mailbox for Notes?

    In Mail.app, how can we specify the Mailbox for Notes (where the new notes will be resided)? It is now 'On My Mac'. I wish to change to my IMAP Mailbox so it sync with my iPhone by just checking email (not by syncing on iTunes).
    Thanks in advance.
    Message was edited by: Ekapon

    You could use the DecimalFormat or NumberFormat to do the job.
    double number 1234.567;
    DecimalForamt df = new DecimalFormat("###.##");
    String s = df.format(number);or
    double number 1234.567;
    NumberFormat nf = NumberFormat.getNumberInstance();
    nf.setMaximumFractionDigits(2);
    /* if needed.
       nf.setMaximumIntegerDigits(value);
       nf.setMinimumFractionDigits(value);
       nf.setMinimumIntegerDigits(value); */
    String s = nf.format(number);I didn't test the codes but they should work. For more information, please consult the documentations.

  • How can we get the location from location area code?

    Hi All,
    i have an application which successfully runs on Motorola L6 and it gives me the cell-id, Location area code, and Mobile Network Code, and Mobile Country Code. Now I want to know how can I get the location ( I mean the name of the location) through location area code. And one more thing can we get current MNC and current MCC through j2me because I have written a code for getting this information for sony ericsson cells but dont have a handset to try out. Anyway if anyone has the information then please let me know
    Thanks in advance
    Sunil

    I donot think you have a direct blog..
    check this blog for java proxies ..
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    AND CONFIGURE A RFC..

  • How can I remove the Location column from the search results in a .chm file?

    How can I remove the Location column from the search results in a .chm file?
    I generated the file in Robohelp HTML 9.
    As far as I know it's used when you've combined more than one source into the final help file. It is possible (though I don't remember doing it) that I did that once a couple of years ago but now I'm only using one source - the project that's generating the .chm.
    Can anyone tell me how I can remove it?
    Thanks
    Tom

    In Project Setup look at the Window properties. I think you will find Advanced Search is ticked.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I specify the default tab in a CHM Output?

    My company uses CHM-based help for some of its products. We build the CHM files from RoboHelp 9, and while these CHM files don't really have a full Index attached to them, the Index tab shows up in the output anyway. Unfortunately, we are suddenly seeing that when the CHM file is launched from our program, the Index tab is displayed by default. We'd rather have the Contents tab be the default look, especially considering that the Index does not exist.
    I have poked around into how you can specify a default tab for a CHM file, and the only information I have found suggests that using a CHM file creates a file (HH.dat) that specifies which tab should be displayed on a user-by-user basis, and that the last tab displayed when you close the CHM should be the first one displayed when you re-open it. While this is true if you open the CHM independent from the product, when you launch it from our program, it's all Index, all the time.
    So, my question is: How can I specify the default tab for a CHM file? Or, failing that, how can I excise the Index tab from my CHM output.

    Hi there
    This will be something up to your application developer to resolve. When s/he issues the call to open the CHM, there are parameters that may be used to always open with the desired tab "in front".
    Point your developer to the link below and advise that s/he is most likely interested in the section titled: Programming Tips.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How do I specify the JRE i wish to use to Run an Application.

    Hi Everyone;
    Please bear with me if you read this before.
    I have installed java 1.3.1 and java 1.4.1 in that order.
    The JRE used by default is java 1.4.1
    How do I specify the JRE I wish to use to Run an Application from a command prompt.
    Example:
    Java -something org.jboss.Main
    help ??
    Stephen

    I was a lil embarrassed. I told my supervisor that the installation of java overwrites the JRE and that's that.
    My supervisor took 10 minutes and went through it and found java.exe in the System32 file.
    The java.exe file is found in guess where "C:/WINNT/System32/" folder how nice. C:/WINNT/System32/ is in the path. Not only that it's the first entry in the path. So when I execute java it is not using java.exe any one of the java files that I got from the java website.
    So I don't have any control over the version.
    Oh well;
    That's life. That's 1 for my supervisor.
    Stephen

  • How can I find the location of the signature used in the Adobe Reader signature feature?

    How can I find the location of the signature used in the Adobe Reader signature feature? I've been using the signature feature for a while now and it works great and I'd like to use it on another computer. However, I forgot where I stored the signature. Adobe finds it with no problems (the signature pops up when I click "Place Signature"), but I have no idea where it is.

    Hello,
    It's here - C:\Documents and Settings\username\Application Data\Adobe\Acrobat\10.0\Security\
    For more information, please refer - Cannot create a digital ID/signature
    ~Deepak

  • How to go to the location of file that I received ...

    How to go to the location of file that I received on skype? I was able to do it easily in old version. 
    Now, I recieved the zip file. If I click on the file, it shows the Zip File View. I don't know where that file is downloaded. (of cuz, need to dip where I set the download path.) In old version of Skype, there is a link where we can open the file in windows explorere.
    I would suggest that the Skype UX or development team needs to read "Don't make me think" short book. 
    Update: There are other people who reported the issues in 2013 http://community.skype.com/t5/Modern-Windows-from-​Windows/Where-are-the-files-saved-that-someone-sen​... Please don't copy all metro skype UI to skype desktop without thinking about usability and royal user expereince. Thanks! 
    Note: Another thing: THis forum seems like it let me post without me logging in. But when I submit the context, it redirects to login page. So, I chose to login with my account and it redirect back me to this forum and the post that I wrote a few min ago was totally gone.. Seriously? 
    Solved!
    Go to Solution.
    Attachments:
    Fuck New UI.png ‏9 KB

    What about this?
    Attachments:
    ShowInFolder.jpg ‏28 KB

  • How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.

    How can I find the location of an i-pod shuffle, nano and touch that i have synced to my account? I have had each one stolen and would be so relieved if i could track there location as I know they are still in the county I live.
    Also if i cant locate them can i at least remotely delete the libraries, and lock them so they are unusable to the thiefs, and i had a sony laptop worth £2000 stolen which I had used my apple account for a year is there anyway i can track that or retrieve the contents and delete them?
    Please if anybody knows reply or contact me!!!! =-)
    many thanks

    You or Apple can do nothing to prevent use of the devices.
    For the iPod touch if you turned on the FindMyiPod feature and wifi is on and connected yu may be ablt ot locate it and wipe it by going to iCloud, signing in and going to FindMyiPhone. However, if the iPOd is rectored that feature is deleted.
    Report to police and change the passwords for all accounts used on the iPod.

  • How do I remove the location line in a calendar appointment

    How do I remove the location line in a calendar appointment

    Hi Happy,
    To remove the ink tanks and print head from the printer, please follow the steps located here.  Please note that we do not recommend cleaning the print head using any other methods other than the ones built into the printer, as it may do damage to the printer.  If performing at least one cleaning and two deep cleanings on the printer do not resolve the issue, the printer may require servicing; please call or email us at one of the methods on the Contact Us page to obtain your servicing options.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • Open and save as Other name

    Hi I have a PDF document from a 3rd party provider , i want to open the document ans save it again using Abode SDK , which is the product i need to install ? Will any Adobe editor do ? Regards

  • Flash only works for one user

    Using IE7. I have three users on my computer. All have Administrator level access. Flash only works for one of them. When attempting to play a video on YouTube for example it says "You either have JavaScrip turned off or an old version of Adobe Flash

  • Invoice Workbench Form giving error

    Hi, I have done a customization on the Standard Invoice Work bench Form. Now When I am entering the lines detail for the non PO based header and closing the form it is giving me error like APP-SQLP-10186:Please Commit or clear your Changes before con

  • Exception: Connection Reset

    Whilst sending a medium amount of data over a socket it stops receiving and if i terminate the client the server sais that he had a connection reset. Can anyone tell me whats the matter?

  • Oracle 817 ZIP File

    Hello Everyone ! Recently I downloaded Oracle 817 , that means nt817se.zip from the server in UK. When i tried to unzip (WinZip 9.0) I got the following errors : creating: C:\OracleInstall\ZIP\Ora817\stage\Components\oracle.bali.ewt\3.3.6.0.0a\1\Data