Log windows - is there a nice way?

How about scrolling windows in swing displaying the tail end of general output, log messages, exception stacktraces etc. etc..
I've played with a TextArea with a Writer defined so that the write(char[] buf, int offset, int len)
method does an append to it. But adding stuff to allow early output to drop off the buffer would be messy if the program was long-running.
Anyone got a more elegant solution?

a Jtable maybe more usefull (a column for hour, one for user, one for short message or error code, one for large message or exception.toString(), ...)
else
you can look for Log4j (Log For Java) over the internet
i heard it is very usefull but i didn't tried it (but has it a GUI ?)

Similar Messages

  • [SOLVED] Is there a nice way to map scancodes to keycodes without HAL?

    So I've just upgraded to X.org 1.8 and don't need HAL anymore, except for one thing - mapping my extra keyboard keys. The only way to do this without HAL that I can find is by just sticking a bunch of setkeycodes commands in my /etc/rc.local, which seems pretty messy to me. I was wondering if something has replaced this functionality post-HAL (maybe udev), or has it just disappeared?
    Last edited by PirateJonno (2010-06-22 09:01:41)

    I think I figured out a way to do it using udev, and I'll update the wiki page once I've tested it a bit.
    Edit: All done, so now I can disable my hal daemon (big boot speed improvement ). Unfortunately I can't uninstall yet since hal-cups-utils has only recently moved over, and some packages still depend on the ancient gnome-vfs
    Last edited by PirateJonno (2010-06-22 10:11:32)

  • Is there a nice way to undeploy / redeploy applications

    How does one undeploy / redeploy applications without cycling the server and editing config.xml?
    And is it safe to delete .../applications/.wl_temp_do_not_delete when the server is not running?

    I'll look into this.
         -Don
    Brian Russell wrote:
    >
    Hi Don,
    When I "Install or Update an Application / Please locate an .ear, .jar, or .war file to install:" I get:
    java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.ZipFile$1.fill(ZipFile.java:212)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:133)
    at java.io.FilterInputStream.read(FilterInputStream.java:93)
    at weblogic.j2ee.Component.retrieveComponent(Component.java:77)
    at weblogic.j2ee.Component.<init>(Component.java:43)
    at weblogic.j2ee.WebAppComponent.<init>(WebAppComponent.java:29)
    at weblogic.j2ee.Application.deploy(Application.java:126)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:149)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:127)
    at weblogic.j2ee.DeploymentListener.handleNotification(DeploymentListener.java:27)
    The original .ear is still open (Windows says "...sharing violation...in use..."), and the
    new version is NOT deployed (however a server stop / start works from this point).
    And what about UNdeploy? The "Deployed" checkbox does not appear to do anything
    when unchecked / Apply'd.
    Don Ferguson <[email protected]> wrote:
    Brian Russell wrote:
    How does one undeploy / redeploy applications without cycling the server and editing config.xml?
    And is it safe to delete .../applications/.wl_temp_do_not_delete when the server is not running?You should be able to copy ear/war/jar files in the applications directory,
    and the server will automatically deploy (or redeploy) them.
    -Don

  • How to increase log window size ?

    I use System.out.println() to display debug messages in the log window but there is a limit of lines and there are so many prints of the stack trace that I can't see my debug messages.
    If I could increase the number of lines displayed, I could see my debug messages before the stack traces.
    I've looked in DefaultServer-diagnostic.log and my debug messages are not in this file.
    I could send my debug messages to a file but I would like to keep using println and the log window.
    I'll use the debugger for now.
    Thanks,
    JP

    JP,
    it's not clear to me where you what to show the output. When you run the app inside jdev using the embedded wls or when you run the app outside jdev using a full wls instance.
    If you are using jdev you can increase the number of lines via the Tools menu: 'Tools->Preferences->Environment' select 'Log' and increase the 'Maximum log lines' property.
    If you are running a wls instance you should look for the console output in the DefaultServer.out or DefaultServer.log files.
    Timo

  • On a Windows 7 computer I installed Firefox 9.0.1 and in my edit menu I have NO Preferences at the bottom, so there is no way to adjust any settings

    On a Windows 7 computer I installed Firefox 9.0.1 and in my edit menu I have NO Preferences at the bottom, so there is no way to adjust any settings The edit menu opens up and I have undo, redo, cut, copy, paste,delete,select all, find....but NO Preferences at the bottom. This is a new laptop and nothing like skype is installed. The Firefox install is new today 1/6/12

    Hi bruce,
    What are you actually looking for? On Windows 7 your options will be under ''Tools > Options''. If you have the ''Firefox'' menu, you can hit ''Alt'' to temporarily enable the menu bar.
    Your System details say Linux. Your say you are on Windows 7 though, correct?

  • Hello there! i would like to know if there is any way to recover a closed window, given the fact that i closed a trade confirmation window. thanks!

    i have just closed an important window and i really need to recover it, but is not the last windou closed, so is not possible to get it pressing ctrl + shift + T, is there any way to recover recently closed windows?

    Hi missionario,
    Try going to ''History > Recently Closed Windows''. There is also an option for ''Recently Closed Tabs''.
    Hopefully this helps!

  • Is There a Better Way to Work in the Marker List Window?

    Is there a better way to sequentially listen to phrases one-by-one in the Marker List window? What I'm doing is Auto-Marking one single long file to break out 271 bits and save each as their own file. It's WAY faster than copying and pasting bits into new files and "saving as" 217 times.
    BUT, after Auto-Marking, I have 300-400 phrases to listen to, deleting the non-keepers as I go, until I'm left with my "keeper" 271 marked phrases. But it's so tedious to move from phrase-to-phase. I have to double-click each one before I can hear it (you can move the cursor with the down-arrow, but it won't actually select the audio). So I have to use the mouse (unless I'm missing something) and double-click each of the hundreds of phrases. Then whenever I delete one (which I'll have to do about a hundred times or more to get rid of bad takes, alternates, etc.), inexplicably the cursor jumps way up the list so you have to scroll back down dozens of files to get to where you were. It took me 35 minutes to do it this last time.
    Contrast that with Reaper's audition/preview functionality (which, ironically, AA has also, but only for files already saved into a folder). Once I had all the files saved into a folder, I QC'd all 217 files in Reaper and MAN what a difference! All I had to do was use the "down" arrow to advance to the next file AND have it play automatically (Audition can do the same thing with the "Open File" feature). It literally took me 5 minutes to check all 217 files that way. If AA could add that kind of functionality to the Marker List window, or if I'm just completely missing something (very possible) I would REALLY be happy.
    Any ideas?
    Thanks again! Happy New Years again!
    Ken

    Wild Duck,
    That doesn't quite do what I need. My end-product is 271 (used to be 116) separate files created from one large file. That large one is made up of WAY more than 271 (the VO actor records different versions of some commands, makes mistakes, etc.).
    So I need the ability to listen to each marker, and then be able to delete it if need be.
    The Playlist makes this impossible in two ways. It only has 2 options for hearing each marker, and neither option allows me to delete that marker after I've heard it. It either plays them all back-to-back without stopping, or it plays each as you click the "Move Down" button. That last one would be great if showed me which marker was playing! But it doesn't, so there is no way for me to know which marker number I just heard, nor can I delete that marker after I hear it.
    Sigh.
    Thanks for the tip though:).
    Ken

  • I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book

    I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.

    If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Is there an easy way to install Windows 7

    I'm using Bootcamp and already have Windows XP install as a second OS. I've pre-ordered Windows 7 several months ago and now I have it in hand and would like to replace Windows XP on my iMac.
    Though I may not use Windows 7 very much (I'm very pleased with my Apple OS), I would still like to install it.
    Is there an easy way to erase the partition that has Windows XP and install Windows 7 instead? How can I do this without touching the Apple OS in fear that I might currupt it in some way?
    Thanking you all in advance,
    Chippathingy

    You should considering using VMware Fusion, Parallels Desktop, or Sun's VirtualBox (which is free). Then, you won't have to dedicate a whole partition to Windows. And Windows will be running alongside Mac OS X, so on those less frequent occasions when you need to use a Windows program, you will not need to restart. Plus you can import your existing Windows XP installation as a virtual machine (I don't know if VirtualBox has an import feature), and have a separate virtual machine for running Windows 7, again with no separate partition; you can even have a virtual machine with one of the Linux'es.

  • I have an old ipod (5th gen) and I downloaded itunes to my toshiba computer. It says my ipod was formatted by mcintosh and must be restored before i can use on windows. is there a way to transfer my music? ty

    I have an old ipod (5th gen) and I downloaded itunes to my toshiba computer. It says my ipod was formatted by mcintosh and must be restored before i can use on windows. is there a way to transfer my music? ty

    Not without installing additional software on your computer.  The problem is that your Windows PC cannot read the Mac's disk format.  If the iPod was previously used on a Mac, its storage uses the Mac's disk format.  The Restore process reformats the iPod's disk for use with Windows, but this erases its current content.
    There are third-party products that allow Windows to read the Mac's disk format.  For example
    http://www.mediafour.com/products/macdrive
    However, even if your computer is able to read the Mac's disk format, iTunes cannot be used to transfer song files from iPod to computer (except for songs purchased from the iTunes Store).  But there are third-party methods and utilities that can transfer from iPod to computer.  If you do an Internet search on something like "ipod transfer," you should get some links.
    So, you may be able to do it by first making the iPod's disk readable on a Windows PC, and then using a method (that is not iTunes) to transfer its song files to your computer's drive.  After the song files are on your computer, you can add them to the iTunes library.

  • All the tunes in my library have duplicated. 1,1,2,2,3,3, etc. Is there a quick way of deleting the duplicates? I have Windows 7.

    All my tunes in my library have duplicated. 1,1,2,2,3.3. etc.  Is there a quick way to delete the duplications - I have over a 1000. I have Windows 7.?? Help please.

    in iTunes Mac there is in the File menu "show duplicates", should be there too in the windows version of iTunes. Just mark every double and delete it from the library.

  • My daughter is missing and has her iPhone 4S with her. When I log into iCloud it says online, location services off. Does that mean there is no way for me to track the phone?

    My daughter has been missing for a week and has a serious medical condition. She has an iPhone 4S and when I log into find my iPhone it says online , location services off. Does that mean there is no way to track the phone?  Please  I'm willing to try anything to get my baby home. Thanks.

    Without location services, there's no way the device can be tracked.  It's location services that provide the device's location to any apps that need that info, including the Find My iPhone service.  Sorry.

  • Is there an easier way to transfer your iTunes library on windows to a mac than copying the library to a usb and plugging the usb into the mac and put the library in the iTunes file

    is there an easier way to transfer your iTunes library on windows to a mac than copying the library to a usb and plugging the usb into the mac and put the library in the iTunes file? I recently swapped to Mac and this is how i moved the library from windows to mac and library is in tact but is there an easier way? My cousin just imported her cd's again, but it was harder for me as i have an ipod with over 150 apps and i needed to move them. i think it would be helpful if i knew of an easier way so i can help a friend move his. Thanks

    The general method of use is to download a script (double-click or right-click and use Download or Save As...) to a folder of your choice, e.g. your Desktop, Downloads folder or create a folder at ...\iTunes\Scripts. Select a playlist or highlight some tracks in iTunes and then double-click on the script to execute it. If no specific tracks are selected the script will try to work with all tracks in the current playlist or sometimes the entire library.
    tt2

  • All my documents were stored on my icloud drive in windows PC somehow the documents got deleted from my ios device. Kindly let know if there is a way to retrive my data

    All my documents were stored on my icloud drive in
    windows PC somehow the documents got deleted from my ios device. Kindly let
    know if there is a way to retrive my data

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • Is there any possible way to see all Log-in information I have used one the web-page (not just passwords, but also a logins used)?

    Hi all,
    The problem is:
    I have been using site at different times from different accounts, and I have used autologin thing.
    But when last time I opened the site, for some reason Mozilla automaticly logged in with my very old account.
    For some reason in Security -> Passwords - I see only 1 "Login" detail for this site.
    Is there any possible way to see all Logins (login information) I have used on this site to log-in?
    May be some file folder is recording them?
    Thanks

    If a password is filled then that can only be done if the password is saved in the password manager.<br />
    If only the name is filled then that can be done by form fill.
    *Form History Control: https://addons.mozilla.org/firefox/addon/form-history-control/

Maybe you are looking for

  • Report for Slow moving items

    HI Gurus Is there any standard report where i can get both stock  and stock value along with the no of days (for NO movement is happened for that material ) ,as MC46 one standard report is there ,but i am not getting stock and stock value togather ei

  • Manipulating Photo Motion in iMovie

    In iMovie '08, I am creating a slideshow since I have more control over how the end product looks versus iPhoto. In sync with some music, I want a photo to start out small in the frame ( reduced size ), and then with the beat of the music, I want to

  • How can I increment a dynamic value each time the request is sent?

    One of my requests is passing a sequence number which gets incremented every time the request is sent. The sequence number is incremented in javascript on the client; the html looks something like this: target=target+"&sequenceNumber="+sequenceNumber

  • Rental movie "wish list"?

    I have been searching thru these discussions and can't find an answer to this. It is not a huge deal, and I know that wishlist v. shopping cart has been discussed to death. My question is, wouldn't itunes benefit from allowing users to make a list or

  • Settings in sysctl.conf not re-loaded on reboot - kernel.printk

    My default kernel.printk values are 15 1 1 7, so I get bunch of kernel messages on all tty shells. So to fix this, I changed default kernel.printk values from 15 1 1 7 to 4 1 1 7 by modifying line in sysctl.conf > "kernel.prink 4 1 1 7" When I do sys