How to keep records in an application

Hi all,
I have a question, may be a silly one. If so I'm really sorry to spending your time.
In an application there can be plenty of information display on the console. Following code give an idea to you what i really looking.
try{
// do something here
catch(Exception ex){
System.out.println("Process not completed");
System.out.println(ex.getMessage());
}Like that we are displaying large amount of data to console. What I want to know, is there any way to keep those records. May be write to a text file or something. So that I can see all past errors, informations and so on.
Major thing I'm looking is how to work on Windows, Linux, Mac etc...
Because initially I try to write those data to a text file in Windows. Then for Linux, Mac..????
Please can you guys guide me to a best option.

Thanks for information.
Actually still I have a doubt which one is the best. And which way is the easiest way. Can you give a more explanation for me.
I start to read about Log4J, and here is one of link I refer.
[http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/log4j/log4j.html]
My question on that is, on a text file I can do it, on Windows. But in Linux, Mac and so on. Please instruct me. I've never done such things before.

Similar Messages

  • How to Keep Alive a specific HFM application

    My PRD landscape has 2-3 applications. Whenever any application loads for the first time in the memory, it takes quite some time before it is loaded. Once the application is loaded, the response times are pretty quick and acceptable.
    During specific parts of the day / month, a specific application becomes active. During this time, other applications may or may not be used, but one specific application is definitely used. I want to keep this application's cubes loaded in the RAM, so that response times are quick, whenever the user needs it - whether for the first time or otherwise.
    How to keep alive a specific application's cubes alive and loaded in RAM? I am not looking for general solution like setting the "FM Service" to Automatic (currently it is set Manual) - setting this to Automatic, will affect all applications. However, I am looking for a specific application at a specific period of time.
    I am ok with a custom solution if required. Let me know, what are my options.

    I think you are looking for an inappropriate solution to your problem. Most HFM applications take a few seconds to start up. If your application takes such a long time to start up you really need to examine the root cause. Start by removing the Sub NoInput and Sub Input routines in your rules to see if this is the reason the application takes so long to start.
    If the removal of those routines does not significantly change the startup time, look through the event logs for possible causes. It is possible you have a connection problem with the Oracle database for example, or you have an environment configuration problem where the HFM application servers have a very slow connection to the database server, or possibly the database server performs poorly.
    I strongly suggest you investigate these root casues first before trying to make HFM behave in a non-standard way. Certainly you can start the HFM Management Service, which will start all of your HFM applications and keep them all up and running. This approach does not allow the applications to shut down on their own though. Only use this if you have exchausted your investigations (as I suggsted above).
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs

    At the top of my homepage, I'm getting a message "Downloading the latest applications", but the circle to the left keeps spinning, and no applications are downloaded. I don't know how to stop this, tried right and left clicking on the bar. This occurs every time I open Firefox. How can I stop or disable this?
    == This happened ==
    Every time Firefox opened
    == Several weeks ago.

    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
    Remove the files in the ''updates'' and ''updates\0'' folder:
    Vista/Windows7:
    C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\ (updates)
    C:\Users\<user>\AppData\Local\VirtualStore\Program Files\Mozilla Firefox\ (updates)
    %LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox\updates\

  • How to keep the Recent Call Record more than a week?

    How to keep the Recent Call Record more than a week? I found the iPhone only can keep the Recent Call Record for only a week.

    I have to disagree with your response with respect. My i phone is limiting me to call going back only 7 days ie today is 29 July and my call log will only go back to 22 July. I have only 40 calls logged for that period. I cannot view up to the 100 you mention. I have included all calls for a single caller as well ie one caller shows 7 so ive counted that as 7 calls. There appears no way to set up to 100 in the settings
    Thanks
    Graham

  • If record is in application server how do u update the single table

    hi
    could anybody tel me
    if record is in application server how do u update the single table
    by using direct input method

    If your Flash player/plugin is older, the only way is to go to Adobe's site (use Limnos' link) and download the full installer. A .DMG file, which you doubleclick to have it mount on the desktop. Inside is the Flash installer app you doubleclick to run and have it upgrade all. Will need an Admin user account.
    After you've upgraded to the latest & greatest, currently 11.5.502.110, a Flash perfpane will show up in System Preferences, where you can set it to auto-update itself, warn you of new updates or manually check for same.

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • How do I find out which application is stealing focus?

    I'm having problems with my Macbook Pro in which my active window keeps deselecting every 5-10 seconds or so, which is making even typing this question extremely difficult.
    I have figured out from searching the web that it is because of an application stealing focus. However, in all the boards that say how to fix this problem, none of them actually tell you how to identify which application is the one stealing focus.
    The most information I could find was to go to Applications > Utilities > Activity Monitor
    and to look for which application is stealing the focus, but it doesn't say WHERE to look.
    Do I look at CPU? Number of threads? Real memory? What?
    Here are my specs:
    - Mac OS X version 10.6.8
    - Processor: 2.3 GHz Intel Core i5
    - Memory: 4 GB 1333 MHz DDR3
    (Let me know if you need any additional info about the system.)
    How do I figure out which application is the one stealing focus? (If you could write it in painfully simple instructions, that would be fantastic).
    Thank-you in advance to any helpful answers!
    -Carly

    First, quit all applications, close all windows and reboot the Mac. Hold down the Shift key prior to the startup chime until it finishes starting. This is called a Safe Boot and causes the system to load only its components, no third party stuff and do other housekeeping tasks. Will take AWHILE, be patient. Run ONE Apple app at a time and see if the issue persists. If it does not, then you will have determined the system is OK and the issue is caused by a third party app. Now reboot normally and see if the issue reasserts itself.  Try this and holler back.
    Note: running Safe Boot in day-to-day use is unadvisable cause many apps require the use of their extensions and won't work correctly, if at all.

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • How can I record an Audio Instrument (saxophone) and listen to a reference track at the same time?

    How can I record an Audio Instrument, and listen to a reference track at the same time?

    Are you using an external audio controller or the line-in and headphone jacks on the side of your computer? You shouldn't have an issue using headphones when you're recording through the line-in but you may want to make sure you have monitoring on and it's going to the right place.
    If you're using an external audio controller, try making an aggregate device combining the controller and the "built-in output" into the same device. Go to Applications/Utilities/Audio MIDI Setup, click the "+" sign at the bottom left to make a new device and check the "use" boxes to the left of the physical devices you want to use as part of that aggregate device. That is how I use the computer's speakers or headphones to monitor my input as opposed to only being able to use the output on my audio controller.
    Now that I see some of the questions on the side of this page I realize that the 13" MBPs seem to have only one combined input/output jack... That is an incredibly stupid feature. What on Earth could possibly justify that design decision? I suppose if that's the problem you're having you'll have to buy some sort of splitter (if they even make them) or get an external audio controller like an Apogee Duet or something along those lines. I would be furious if they combined those two jacks on all of the MBPs.

  • How to keep XML file in memory for specified period ?

    How to keep XML file in memory for specified period or forever, I have 5 applications running on WebSphere I wants to use XML file for all the applications. I mean when one apllication is not using XML file still I wants to keep it in memory ...
    Thanx in advance ,

    Hello,you can create a DocumentManager class,
    here is my solution in the past...
    you can use static Hashtable save the xml's Document,if one application want get
    a appointed Document.first,you can find it from Hashtable,if can't find it ,you
    can create it and put into Hashtable,if the words fail to express the meaning,sorry,my english is limited
    package com.foresee.xfiles.util;
    import java.util.*;
    import org.w3c.dom.*;
    import org.apache.log4j.*;
    import com.foresee.xfiles.common.*;
    import com.foresee.xfiles.server.exception.*;
    import com.foresee.xfiles.util.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    public final class DocumentManager {
    private static Category m_log = Category.getInstance(DocumentManager.class.getName());
    static {
    PropertyConfigurator.configure(Configurator.getLCF());
    public DocumentManager() {
    //synchronized
    public static synchronized Document getTransitionDoc(String path) throws SchemaCheckOutException{
    Document m_TransitionDoc;
    m_TransitionDoc = (Document)TransitionDoc.get(path);
    if (m_TransitionDoc == null){
    XmlHelper m_xh = new XmlHelper();
    try{
    m_TransitionDoc = m_xh.getDocument(path);
    }catch (SchemaCheckOutException se){
    m_log.error("������������������������"+path+"����:"+se.getUserMsg());
    throw se;
    TransitionDoc.put(path,m_TransitionDoc);
    return m_TransitionDoc ;
    public static synchronized Document getLogicCheckDoc(String path) throws SchemaCheckOutException{
    Document m_LogicCheckDoc;
    m_LogicCheckDoc = (Document)LogicCheckDoc.get(path);
    if (m_LogicCheckDoc == null){
    XmlHelper m_xh = new XmlHelper();
    try{
    m_LogicCheckDoc = m_xh.getDocument(path);
    }catch (SchemaCheckOutException se){
    m_log.error("������������������������"+path+"����:"+se.getUserMsg());
    throw se;
    LogicCheckDoc.put(path,m_LogicCheckDoc);
    return m_LogicCheckDoc ;
    public static Hashtable TransitionDoc = new Hashtable();
    public static Hashtable LogicCheckDoc = new Hashtable();

  • How to keep the filtered output in a page after user navigates back?

    How to keep the filtered output in a page after user navigates back to all records from another page.
    Currently it clears the search

    Hi,
    user13091824 wrote:
    How to keep the filtered output in a page after user navigates back to all records from another page.
    Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
    pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
    "SUPP_SEARCH",
    OAWebBeanConstants.GUESS_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    ---After setting AM Status to true u can able to c the values.
    Regards
    Meher Irk

  • How to keep customer Pattern/Die Equipment in our plant without value

    Hi!
      Anybody help me to sort out my problem. The scenario is,
    How to keep customer Pattern/Die Equipment in our plant without value
    1.My client manufacturing material (A), which is used to produce actual finished goods (B). First material (A) is produced and sold to customer due to the high cost of the material. I followed standard sales order process to sell material (A). (But actually that material is not delivered to the customer, we just deliver it only in the system)
    2. Then the same material (A) is to be brought in to the plant as customer material. It won’t be included in the value of the plant, because it is customer’s property lying in our plant to produce actual finished goods (B). How to inward the material in to our plant?
    3. Pattern/Die material has periodical maintenance to be done by my client. How do we process this in SAP? (Because that material is not our asset or work centre)

    Hi,
    You have two main options,
    Either you receive the material as a non-valuated item (you can use a PO and zero price if you want, or create a new material for it). The problem with this is that if you use Moving Average Prices and don't use a new material it will corrupt the MAP. If you use a separate material then this would be the preferred option.
    If you can't use a separate material (i.e. one that is different from the material used to sell it to the customer) then I would use the second option.
    The secomd option is to bring the item in as Vendor Consignment stock. This is stock available to use but has nop value until you consume it. The problem with this option is, if you consume the item (in a PP order or goods issue to your own stock or similar) the system will post a liability to the vendor which it will expect top be paid.
    So a lot depends on the detailed process you are planniong to use and if it is a separate material master record.
    Steve B

  • HT204216 how do i record a lp or casset to my iMac

    how do i record a lp or casset to my iMac?

    If your iMac has a Line-Level-Input jack, then you could connect the line-level-output from your player to that input, and using an application such as Audacity to record and save the recording as an audio file.
    http://audacity.sourceforge.net
    Also there are companys that have players that you can connect via USB --
    http://www.ionaudio.com/products/turntables

  • How to keep finder in mountain lion from opening at startup

    How to keep finder in mountain lion from opening at startup.?

    Now you got me thinking....
    One can set things up so Finder can be quit like any other application.  In Terminal:
    defaults write com.apple.finder QuitMenuItem 1
    Then relaunch the Finder.
    I guess it might be possible to make a an Applescript or Automator application which runs at start up and quits the Finder.
    charlie

  • How to keep track of the users who are all currently logged in

    Hi All,
    I have basic knowledge of Session and Servlets. I am wondering how to keep track of the users who are all currently logged in. There should be some way of achieving it.
    I thought of it and come up with having an Application variable that hold it when ever a user successfully logged in.
    Thanks in advance for any reply.

    You can do this by keeping data in a static veriable in a some class of yours. The variable will need to be a collection.
    Whenever a user loogs in to the site a servlet/jsp should put the users information in to the collection and when logs off or when the session expires the entry should be take off.
    You can achive this by storing the velues in a some sort of a week collection where the entries are automaticaly removed when all the other refferences to the entry goes out of scope.
    You might need to read bit about java.lang.ref package and WeekReference
    Or you can make the entry in the collection contain the last time that the user visited any of the pages and a thread can run time to time and clean up the older entries which have timed out

Maybe you are looking for

  • Use Powershell to replace text with image in Word document

    I have a powershell script that uses a Word document as a template to create signatures that I am pushing out to my organization. The document is populated with text formatted the way I want the signature to look, that I then do a FindText and Replac

  • How to use auto update in android ?

    hi, i want to use adobe air auto update in android devices.. what can i do ?

  • Applescript to Automatically Connect VPN

    Recently got a MacBook and when I'm at home I use it to connect to my university's VPN connection. This works well except for the fact that it disconnects every time my laptop sleeps or locks so I wrote this applescript: on idle   tell application "S

  • Two diffferent type of joins on the same table

    I have a query that, it seems, requires me to two two different types of joins to the same table. from table t1 LEFT OUTER JOIN table2 t2 ON t1.col1= t2.col1 and t1.col2 = t2.col2 and t1.col5 = t2.col5 LEFT OUTER JOIN table2 t3 ON t1.col1= t3.col1 an

  • Generate dynamic flash using other flash app?

    Greetings! I was wondering: Imagine having a swf or fla with a dynamic textfield. is it possible to build an application that 1) opens the swf or fla 2) fills in the dynamic textfield 3) regenerates the swf so that in the new swf, the textfield is fi