Extending LogManager and Logger

I'm trying to sub-class Logger and LogManager. In a very old thread someone suggested...
You should make two classes like this:
public class TSPPXMLLogger extends Logger {
protected TSPPXMLLogger(String loggerName) {
super(loggername);
// custom log methods etc.
public class TSPPLogManager extends LogManager {
public synchronized Logger getLogger(String name) {
// check if the logger is in the cache
Logger logger = super.getLogger(name);
if ( logger == null ) {
logger = new TSPPXMLLogger(name);
// add the logger to the cache
super.addLogger(logger);
return logger;
I've tried doing exactly what this person suggested above. I created my own Logger and LogManager subclasses, MyLogger and MyLogManager respectively. I configured Java using the property java.util.logging.manager=com.mycompany.MyLogManager. Because of this any call to LogManager.getLogManager() will return an instance of MyLogManager. This is great!
The MyLogManager.getLogger() method, as suggested above, also always returns a non-null value. I want it to always return a non-null value because the method Logger.getLogger() will return an instance of Logger, not MyLogger, if the named logger doesn't already exist.
I thought things would be great but then discovered that none of my logging statements were being output. Further examination showed that the reason was because no root logger of type LogManager.RootLogger existed. The cause was the fact that LogManager.getLogManager().getLogger() always returned a non-null value.
So my question is, due to the fact that the Logger class can new up instances of itself in its Logger.getLogger() method how can I make sure that anyone using the super classes of LogManager and Logger will always get one of my derived classes?

As i am using my own classloader which changes every instance of Socket to SocketProxy and ServerSocket to ServerSocketProxy (using a bytecode modification tool), and because the accept() return is of type Socket (and not SocketProxy) thats why i think it gives me error. (It loads some classes but gives error when accept() is called)

Similar Messages

  • I have Photoshop CS6 Extended Students and Teachers Edition.  When I go into the Filter/Oil paint and try to use Oil paint a notice comes up "This feature requires graphics processor acceleration.  Please check Performance Preferences and verify that "Use

    I have Photoshop CS6 Extended Students and Teachers Edition.  when I go into the Filter/Oil paint and try to use Oil Paint a notice comes up "This feature requires graphics processor acceleration.  Please Check Performance Preferences and verify that "Use Graphics Processor" is enabled.  When I go into Performance Preferences I get a notice "No GPU available with Photoshop Standard.  Is there any way I can add this feature to my Photoshop either by purchasing an addition or downloading something?

    Does you display adapter have a supported  GPU with at least 512MB of Vram? And do you have the latest device drivers install with Open GL support.  Use CS6 menu Help>System Info... use its copy button and paste the information in here.

  • HT4407 Hey, I am unable to install windows 7 using 'bootcamp 5.0' . I have already partitioned the drive as (mac Os Extended Journaled) and yet it seems bootcamp won't acknowledge this?

    Hey, I am unable to install windows 7 using 'bootcamp 5.0' . I have already partitioned the drive as (mac Os Extended Journaled) and yet it seems bootcamp won't acknowledge this?
    My first thoughts were that 'bootcamp' was out of date...needed an upgrade to register windows 7. Since then I am once again met with the same problem... how can it not see the I have already have a paritioned drived ready to be used for installition, is there a way to fix this problem? I don't really want to pay out for 'i-parition' only to merge my 2 drives back into one and start again from scratch =/. Seems silly to do so...what are my options?
    Regards Swishi...p.s If anyone can help me...it'll make my day :3.

    ONE PARTITION.
    You don't need to buy anything but you should have backups.
    you can delete #2 you created. Then resize to full drive.
    There are already
    GPT
    EFI
    Mac
    Recovery
    and there needs to be Windows which cannot be higher ID
    Reading the instructions first and just swallow whatever pride or inidignation. It is a "my way or highwar" setup and utility,.
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    create a Windows support software (drivers) CD or USB storage media
    http://support.apple.com/kb/HT4407
    The Boot Camp Assistant can burn Boot Camp software (drivers) to a DVD or copy it to a USB storage device, such as a flash drive or hard drive. These are the only media you can use to install Boot Camp software.
    https://support.apple.com/kb/HT4569
    Installation Guide  Instructions for all features and settings.
    Boot Camp 4.0 FAQ  Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ  Answers to commonly asked Windows 7 questions.
    http://www.apple.com/support/bootcamp/

  • On my canon powershot A3300IS the lense is stuck in the extended position and will not close

    I have a canon powershot A3300 IS  the lense is stuck in the extended position and will not close. How can I fix this myself?

    Forneypamela,
    Please remove the battery from the camera for a few minutes.  Then, put the battery back in the camera and power it on again.  If the lens is still stuck in the extended position, the camera is going to need service.  I apologize for any inconvenience this may cause.
    To start your repair process, you'll need to complete a Repair Request on our website.
    If the camera is more than a year old, you may participate in the Canon Loyalty Program instead.  The Canon Loyalty Program option allows you to replace your current camera for a discounted fee, plus shipping.  The unit offered through this program carries a 90 day warranty.  The original non-functioning camera would then be returned to Canon USA for recycling using a prepaid shipping label that would be provided.
    If you would like to take part in this option, please call our Sales Department at (800) OK CANON (800-652-2666) seven days a week, 8am to Midnight.  Let them know you have been working with online support and the Canon Loyalty Program was offered.  Be sure to have your serial number for your camera at the time of your call.
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I have PS CS3 Extended discs and serial number but do not have a CD drive on my new computer.  How can I download it?

    I have PS CS3 Extended discs and serial number but do not have a CD drive on my new computer.  How can I download it?

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • New Computer Windows 8 without CD Rom Drive, CS5 Extended Student and Teacher Download and Install

    I have a new laptop with Windows 8, and like most new computers it does not have a CD Rom drive. I have deactivated CS5 Extended Student and Teacher Edition from my old computer (since I am only allowed one computer at a time) and would like to install and activate on my new machine. I am in possession of the original cd, product key and serial number, however the email that I originally used to get the serial number no longer exists. I have created a new Adobe ID with my new email address.
    I read a forum that suggested that I download a trial, and then activate that trial with my serial number. I followed those steps with the closest version I could find, which was CS5, and though my computer said the files downloaded, nothing was installed... and I cant figure out how to install... and I am concerned that I dont have the same version in the trial as the CD that I own. Any advice would be greatly appreciated- most of the reason I wanted a faster computer was so I could run my photoshop on there!!!!

    Direct Download Links for Adobe Software
    Otherwise feel free to transfer your DVD-based installers to an USB stick or whatever is at hand.
    Mylenium

  • Ordering Adobe Photoshop CS6 Extended Student and Teacher Edition possible? or offline versions in general?

    Hello all,
    I wanted to buy the Adobe Photoshop CS6 Extended Student and Teacher Edition which I would be eligible to buy
    but as it seems, the Paypal option in the adobe store  doesn´t seem to work.
    I already contacted the customer service "Kundendienst" but they told me that they don´t offer paypal - odd because as you can see it is on their own site..?
    Since I don´t own a creditcard nor do I ever want one *, I also asked for a secure and good payment method called "Lastschriftverfahren" so I could easily give adobe  money from my bank.
    that option also isn´t available.
    * http://www.golem.de/news/datenhack-adobe-warnt-deutsche-kunden-vor-kreditkartenmissbrauch- 1311-102806.html
    is there a way for a student to order a full offline version of Photoshop?
    I really don´t want to stand in the rain of that cloud.
    * http://www.golem.de/news/27-stunden-ausfall-adobe-creative-cloud-laesst-anwender-im-regen- stehen-1405-106542.html
    like being forced to stay of photoshop just because a hacker again compromised the adobe servers.
    I would be actually glad  to give money to adobe but what would be a possible way now?
    there are alternatives like Photoline, Corel and so on but I would love to try it with Adobe first.

    Amazon oder MediaMarkt oder Gravis oder, oder, oder...
    Mylenium

  • Re-installing Photoshop CS5 Extended Student and Teacher Edition (for Mac)?

    How can I download and re-install Photoshop CS5 Extended Student and Teacher Edition (for Mac) for which I have a licence?  I lost the previous version in a disk crash.  I tried downloading the full Photoshop CS5 installer, but I was told I couldn't run the installer because I didn't have permission. 
    Thanks,
    Rodney

    Here is the link for the  CS5 installers: Download CS5 products
    Be sure to right click and run the installer as an administrator if you have trouble. If it still fails, download the installer again.
    Benjamin

  • I am trying to download the Adobe Photoshop CS6 Extended Student and Teacher Trial

    I am trying to download the Adobe Photoshop CS6 Extended Student and Teacher Trial and it had me download te assistant. After downloading the assistant, I installed it and I signed in. It wants me to pick a product to download and the Adobe Photoshop CS6 Extended Student and Teacher is not listed. The closest thing to download is Adobe PS CS6. Please help me

    there is no specific trial for S&T. It's just the normal program. S&T is a licensing/ pricing thing, not some technical difference.
    Mylenium

  • Adobe Photoshop CS6 Extended Student and Teacher Edition

    My daughter just took a photography class at her H.S. and used Photoshop in that class.  How close would anybody guess that Photoshop CS6 Extended Student and Teacher Edition is to what she used.  I don't know the version of what she used.....

    Hi thritchie,
    You can check the version of Photoshop by launching it, and selecting 'About Photoshop' from the 'Help' Menu at the top.

  • Adobe Photoshop CS5 Extended Student and Teacher Edition

    I would like to buy Adobe Photoshop CS5 Extended Student and Teacher Edition. Is that still available?

    Here is link to academic version qualifications.  http://www.adobe.com/education/eligibility-guide.edu.html?showEduReq=no
    You probably still have to have proof wherever you order from.

  • Adove photoshop cs6(normal) vs Adobe Photoshop CS6 Extended Student And Teacher Edition

    hi guys,
    i would like to know what is the difference between Adove photoshop cs6(normal) and  Adobe Photoshop CS6 Extended Student And Teacher Edition wich is available for around 120 to 165 $ on online shops.

    The educational package is the same.
    Extended has 3D capibility.  Will not work with Windows XP or video card with less than 512 meg of VRAM.

  • How to do I add Adobe Photoshop CS6 Extended Student and Teacher Edition Bundle to my basket?

    Hi there,
    I was just wondering how i could add Adobe® Photoshop® CS6 Extended Student and Teacher Edition Bundle to my basket as it wont let me once i have selected the bundle option.
    Many thanks
    Tom

    This is an Apple forum, those are Adobe products. You need to be in touch with Adobe!

  • I've got an Adobe Photoshop CS6 Extended Student and Teacher Edition and serial number doesn't work

    I've got an Adobe Photoshop CS6 Extended Student and Teacher Edition and serial number doesn't work

    Get in touch with support. Also make sure you are not trying to input your eligibility verification code, but have converted it to a proper serial on the edu pages.
    Mylenium

  • How many computers does Adobe Photoshop CS6 extended Students and Teacher Edition be licensed on?

    I have Adobe Photoshop CS6 extended Students and Teacher Edition, but i wanted to know how many computers it can be licensed on?

    You can do licensed install on two systems same platform(Win or Mac). This depends for which platform you bought the SN for.
    Hope this answers your query.
    Regards,
    Ashutosh

Maybe you are looking for

  • Problem in executing the SO_NEW_DOCUMENT_SEND_API1 in background task

    Hi All, I have specific requirement in which I need to put the workflow into an error whenever posting of the journal document fails (which is a background task in my workflow) and before that I should send the notification to the initiator's lotus n

  • LSMW / tcode KB11N / Error with Field KOKRS

    Hi, I post this message because Iu2019ve got a problem with a LSMW I created. Context : I want automate « Reposting of Primary Cost » with transaction KB11N. When I start to integrate my data with SM35 Iu2019ve got an error message on the field KOKRS

  • Output Determination @ IM Level

    Hi, We need to print out a label whenever we make a stock transfer from IM Managed S.Loc "A" to IM Managed S. Loc "B" using 311 movement type.  Can anyone please explain me the steps for the output determination based on the condition when movement h

  • Disable Color Picker

    Is there a way to disable the color picker from appearing when a color control is clicked on? I have a two demensional array of color controls. I want to use event driven code rather than having the color picker / palette appearing.

  • Suspected Malware slowing computer and Download speed?

    I've done a little research and found out that certain malware on macs can be obtained through certain downloading sites. My computer is becoming slower and slower and download speed is being affected by something ( tested speed 2.3MB/s but the speed