[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    RE: System.out -> log4j conversion
From:       Bob.Tarling () irishlife ! ie
Date:       2003-07-31 16:39:30
[Download RAW message or body]

I was thinking of writing it myself but then thought someone may well have
done the same already.

The FQCN is a good point. Saves me having to put the import in as well as
the variable declaration.

> -----Original Message-----
> From:	Shapira, Yoav [SMTP:Yoav.Shapira@mpi.com]
> Sent:	31 July 2003 17:33
> To:	Log4J Users List
> Subject:	RE: System.out -> log4j conversion
> 
> 
> Howdy,
> Not that I know of, but this would be fairly easy to write in java.
> 
> Oh one alternative does come to mind.  If you use a text tool and use
> the fully-qualified class names, i.e org.apache.log4j.Logger logger, I
> think jalopy and a number of other tools will go through your source and
> convert FQCNs into import statements.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> > -----Original Message-----
> > From: Bob.Tarling@irishlife.ie [mailto:Bob.Tarling@irishlife.ie]
> > Sent: Thursday, July 31, 2003 12:20 PM
> > To: log4j-user@jakarta.apache.org
> > Subject: System.out -> log4j conversion
> > 
> > Hi
> > 
> > Is there a utility available to scan java files and automatically
> replace
> > System.out.println with a cat.debug and when found enter the import and
> > Category cat declaration at the top of the file.
> > 
> > The first part of this could be done with many search/replace tools but
> > it'd
> > be neat if the import and declaration went in at the same time.
> > 
> > I have many files to fix.
> > 
> > Regards
> > 
> > Bob.
> > 
> > 
> > 
> > This is a confidential communication and is intended only for the
> addressee
> > indicated in the message (or duly authorised to be responsible for the
> > delivery of the message to such person). You are specifically
> prohibited
> > from copying this message or delivering the same, or any part thereof,
> to
> > any other person, whomsoever or howsoever, unless you receive written
> > authorisation from us to do. If you are anyone other than the intended
> > addressee, or person duly authorised and responsible for the delivery
> of
> > this message to the intended addressee, you should destroy this message
> and
> > notify us immediately. Please note that we accept no responsibility
> > whatsoever in the event that this message or any other email message or
> any
> > part thereof becomes known or is communicated to anyone other than the
> > intended recipient or other person authorised in writing by us to
> receive
> > it, howsoever arising and disclaim all liability for any losses or
> damage
> > which may be sustained by any person as a result thereof.
> > 
> > Irish Life Assurance plc (trading as Irish Life) is regulated by the
> Irish
> > Finanical Services Regulatory Authority.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org


This is a confidential communication and is intended only for the addressee
indicated in the message (or duly authorised to be responsible for the
delivery of the message to such person). You are specifically prohibited
from copying this message or delivering the same, or any part thereof, to
any other person, whomsoever or howsoever, unless you receive written
authorisation from us to do. If you are anyone other than the intended
addressee, or person duly authorised and responsible for the delivery of
this message to the intended addressee, you should destroy this message and notify us \
immediately. Please note that we accept no responsibility whatsoever in the event \
that this message or any other email message or any part thereof becomes known or is \
communicated to anyone other than the intended recipient or other person authorised \
in writing by us to receive it, howsoever arising and disclaim all liability for any \
losses or damage which may be sustained by any person as a result thereof.

Irish Life Assurance plc (trading as Irish Life) is regulated by the Irish Finanical \
Services Regulatory Authority.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic