I'll vote for being able to set it from JMX.
For the future, how about using two variables:
* one non-final, perhaps called verbose, that generates additional
information that a user would find helpful (e.g. SQL log)
* one final, perhaps called debug, that generates even more output
intended for someone actually debugging the container
Jeremy
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kimpton,C (Chris)
Sent: Friday, March 09, 2001 1:51 AM
To: 'JBoss-Dev'
Subject: [jBoss-Dev] [VOTE] debug variable - final or not?
Hi,
>
> I agree completely and vehemently with Tom. Please don't go backwards,
> in deployed systems it must be as easy as possible to turn
> trace output
> on and off. Recompiling application code is not even an option,
> recompiling your app server just to turn on trace is
> something that just
> can't happen.
>
> Please put this back. Please. Better yet, make it
> configurable from JMX.
>
> Tom Cook wrote:
> >
> > On Thu, 8 Mar 2001, jBoss CVS Development wrote:
> >
> > [snip]
> > > Log:
> > > add final clause to debug var
> >
> > Just out of interest - why? To make it faster? If you
> don't make this
> > final then you could potentially change it from the JMX web
> admin thingy,
> > which would be useful in debugging/support...
> >
Oops - looks like a controversial one...
I was assuming that since the debug output was controlled by variable and
not just by the jboss.conf logging options that it was very much a
development only kind of output. And thus we would want to optimise it out
at the earliest opportunity in a prod environment - to make that CMP stuff
really fly ;-)
Maybe I was wrong.
I can see that changing it at runtime has some advantages - and I didn't
'twig' that I could just set the flag from my code too - which might be
useful...
Please vote and I'll amend it accordingly.
Chris
============================================================================
====================
This electronic message (email) and any attachments to it are subject to
copyright and are sent for the personal attention of the addressee. Although
you may be the named recipient, it may become apparent that this email and
its contents are not intended for you and an addressing error has been made.
This email may include information that is legally privileged and exempt
from disclosure. If you have received this email in error, please advise us
immediately and delete this email and any attachments from your computer
system.Rabobank International is the trading name of Coöperatieve Centrale
Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands.
Registered with the Registrar of Companies for England & Wales No. BR002630
and regulated by the SFA for the conduct of investment business in the UK.
The presence of this footnote also confirms that this email has been
automatically checked by Rabobank International for the presence of computer
viruses prior to it being sent, however, no guarantee is given or implied
that this email is virus free upon delivery.