JXTA

Package net.jxta.logging

Provides global control over use of logging by JXSE.

See:
          Description

Class Summary
Logging This class defines constants for JXTA JSE's logging facilities.
 

Package net.jxta.logging Description

Provides global control over use of logging by JXSE.

The provided Logging.java file is only one of several practical implementations. The implementation strategies for Logging.java fall into three basic categories:

final static SHOW_* = <value>;
All of the SHOW_ fields are defined with literal expressions allowing their value to be calculated at compile time. This varient allows JXSE to be compiled such that logging is entirely disabled (if <value> is false) and the logging code is not even present in the compiled bytecode.
final static SHOW_*;
The default. All of the SHOW_ fields are defined in a static initializer based upon a calculated value. Since their value cannot be known at compile time the resulting bytecode will contain the conditional logging code. Since the SHOW_ fields are final the JVM JIT can still optimize the bytecode as it is dynamically compiled.
static SHOW_*;
All of the SHOW_ fields are defined in a static initializer based upon a calculated value and may be redefined at any time. Since their value cannot be known at compile time the resulting bytecode will contain the conditional logging code. The values of the SHOW_ may be changed at any time to dynamically alter the logging behaviour.


JXSE