You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Bo...@irishlife.ie on 2003/07/31 18:19:45 UTC

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


Re: System.out -> log4j conversion

Posted by neil <ne...@singlescan.co.uk>.
Bob,

Are you on unix? if so you could use sed

Neil
----- Original Message -----
From: <Bo...@irishlife.ie>
To: <lo...@jakarta.apache.org>
Sent: Thursday, July 31, 2003 5:19 PM
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
>
>
>



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