Discussion:
How to disable Velocity logging?
Golan
2002-05-04 17:36:44 UTC
Permalink
I am using Velocity in a servlet situation and need to know how to disable
logging.

I have been trying to work with velocity.properties, but to no avail.

Any assistance would be greatly appreciated.

Regards,

Tal Golan

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
Geir Magnusson Jr.
2002-05-04 17:56:43 UTC
Permalink
Post by Golan
I am using Velocity in a servlet situation and need to know how to disable
logging.
Completely? Or just not to stdout or file? It can be made to log to the
servlet log...
Post by Golan
I have been trying to work with velocity.properties, but to no avail.
Pretty simple. Just configure with

org.apache.velocity.runtime.log.NullLogSystem

As the logger class, and it will happily eat all the bits...
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
***@adeptra.com
+1-203-247-1713
Golan
2002-05-05 01:22:15 UTC
Permalink
Geir:

Thanks.

1) Will configuring Velocity to use
org.apache.velocity.runtime.log.NullLogSystem help performance.
2) What needs to be done to get Velocity to use the Servlet log instead?

Tal

-----Original Message-----
From: Geir Magnusson Jr. [mailto:***@adeptra.com]
Sent: Saturday, May 04, 2002 10:57 AM
To: velocity-***@jakarta.apache.org
Subject: Re: How to disable Velocity logging?
Post by Golan
I am using Velocity in a servlet situation and need to know how to disable
logging.
Completely? Or just not to stdout or file? It can be made to log to the
servlet log...
Post by Golan
I have been trying to work with velocity.properties, but to no avail.
Pretty simple. Just configure with

org.apache.velocity.runtime.log.NullLogSystem

As the logger class, and it will happily eat all the bits...

--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
***@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:
<mailto:velocity-user-***@jakarta.apache.org>
For additional commands, e-mail:
<mailto:velocity-user-***@jakarta.apache.org>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
Geir Magnusson Jr.
2002-05-05 01:28:32 UTC
Permalink
Post by Golan
Thanks.
1) Will configuring Velocity to use
org.apache.velocity.runtime.log.NullLogSystem help performance.
Well, sort of - the logging isn't that heavy, but yes, there will be some
benefit to limiting the output. Less work for the system to do.
Post by Golan
2) What needs to be done to get Velocity to use the Servlet log instead?
Take a look at the ServletLogger in the jakarta-velocity-tools project. You
need to do a little bit of work in your servlet's init() to get it to work,
but it's works very well. I am using it heavily, and it's so nice to just
use and have one place for the output.

To see how it works, look at the ViewServlet in the same place.
Post by Golan
Tal
-----Original Message-----
Sent: Saturday, May 04, 2002 10:57 AM
Subject: Re: How to disable Velocity logging?
Post by Golan
I am using Velocity in a servlet situation and need to know how to disable
logging.
Completely? Or just not to stdout or file? It can be made to log to the
servlet log...
Post by Golan
I have been trying to work with velocity.properties, but to no avail.
Pretty simple. Just configure with
org.apache.velocity.runtime.log.NullLogSystem
As the logger class, and it will happily eat all the bits...
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
+1-203-247-1713
--
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
***@adeptra.com
+1-203-247-1713
Golan
2002-05-05 01:51:54 UTC
Permalink
Thanks again.

BTW: I have been using Velocity on and off now for about 6 months and it is
EXTREMELY impressive. Thanks to you and the others who have obviously been
working so hard on this tool.

Regards,

Tal

-----Original Message-----
From: Geir Magnusson Jr. [mailto:***@adeptra.com]
Sent: Saturday, May 04, 2002 6:29 PM
To: velocity-***@jakarta.apache.org
Subject: Re: Velocity Logging
Post by Golan
Thanks.
1) Will configuring Velocity to use
org.apache.velocity.runtime.log.NullLogSystem help performance.
Well, sort of - the logging isn't that heavy, but yes, there will be some
benefit to limiting the output. Less work for the system to do.
Post by Golan
2) What needs to be done to get Velocity to use the Servlet log instead?
Take a look at the ServletLogger in the jakarta-velocity-tools project. You
need to do a little bit of work in your servlet's init() to get it to work,
but it's works very well. I am using it heavily, and it's so nice to just
use and have one place for the output.

To see how it works, look at the ViewServlet in the same place.
Post by Golan
Tal
-----Original Message-----
Sent: Saturday, May 04, 2002 10:57 AM
Subject: Re: How to disable Velocity logging?
Post by Golan
I am using Velocity in a servlet situation and need to know how to disable
logging.
Completely? Or just not to stdout or file? It can be made to log to the
servlet log...
Post by Golan
I have been trying to work with velocity.properties, but to no avail.
Pretty simple. Just configure with
org.apache.velocity.runtime.log.NullLogSystem
As the logger class, and it will happily eat all the bits...
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
+1-203-247-1713
--
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
***@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:
<mailto:velocity-user-***@jakarta.apache.org>
For additional commands, e-mail:
<mailto:velocity-user-***@jakarta.apache.org>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
Geir Magnusson Jr.
2002-05-05 02:34:36 UTC
Permalink
Post by Golan
Thanks again.
My pleasure.
Post by Golan
BTW: I have been using Velocity on and off now for about 6 months and it is
EXTREMELY impressive. Thanks to you and the others who have obviously been
working so hard on this tool.
Thanks from all of us.
Post by Golan
Regards,
Tal
-----Original Message-----
Sent: Saturday, May 04, 2002 6:29 PM
Subject: Re: Velocity Logging
Post by Golan
Thanks.
1) Will configuring Velocity to use
org.apache.velocity.runtime.log.NullLogSystem help performance.
Well, sort of - the logging isn't that heavy, but yes, there will be some
benefit to limiting the output. Less work for the system to do.
Post by Golan
2) What needs to be done to get Velocity to use the Servlet log instead?
Take a look at the ServletLogger in the jakarta-velocity-tools project. You
need to do a little bit of work in your servlet's init() to get it to work,
but it's works very well. I am using it heavily, and it's so nice to just
use and have one place for the output.
To see how it works, look at the ViewServlet in the same place.
Post by Golan
Tal
-----Original Message-----
Sent: Saturday, May 04, 2002 10:57 AM
Subject: Re: How to disable Velocity logging?
Post by Golan
I am using Velocity in a servlet situation and need to know how to
disable
Post by Golan
Post by Golan
logging.
Completely? Or just not to stdout or file? It can be made to log to the
servlet log...
Post by Golan
I have been trying to work with velocity.properties, but to no avail.
Pretty simple. Just configure with
org.apache.velocity.runtime.log.NullLogSystem
As the logger class, and it will happily eat all the bits...
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
+1-203-247-1713
--
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
+1-203-247-1713
--
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
***@adeptra.com
+1-203-247-1713
Continue reading on narkive:
Loading...