sdeboy 2004/12/01 08:53:39
Modified: src/java/org/apache/log4j/chainsaw/version
VersionManager.java
src/java/org/apache/log4j/chainsaw LogUI.java
src/java/org/apache/log4j/chainsaw/help release-notes.html
Log:
Enabling TRACE in Chainsaw by setting the root logger level to TRACE in a
static block
Revision Changes Path
1.16 +1 -1
logging-log4j/src/java/org/apache/log4j/chainsaw/version/VersionManager.java
Index: VersionManager.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/version/VersionManager.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- VersionManager.java 1 Dec 2004 07:58:08 -0000 1.15
+++ VersionManager.java 1 Dec 2004 16:53:39 -0000 1.16
@@ -10,7 +10,7 @@
private static final VersionManager instance = new VersionManager();
- private static final String VERSION_INFO = "1.99.99 (30 November 2004)";
+ private static final String VERSION_INFO = "1.99.99 (1 December 2004)";
public static final VersionManager getInstance() {
return instance;
1.111 +5 -2
logging-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java
Index: LogUI.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -r1.110 -r1.111
--- LogUI.java 1 Dec 2004 09:36:26 -0000 1.110
+++ LogUI.java 1 Dec 2004 16:53:39 -0000 1.111
@@ -162,6 +162,10 @@
private int cyclicBufferSize;
private static final Logger logger = LogManager.getLogger(LogUI.class);
+ static {
+ LogManager.getRootLogger().setLevel(Level.TRACE);
+ }
+
/**
* Set to true, if and only if the GUI has completed it's full
* initialization. Any logging events that come in must wait until this is
@@ -297,7 +301,6 @@
logUI.handler.addFilter(propFilter);
logUI.handler.addEventBatchListener(logUI.new
NewTabEventBatchReceiver());
-
/**
* TODO until we work out how JoranConfigurator might be able to have
* configurable class loader, if at all. For now we temporarily replace
the
@@ -359,6 +362,7 @@
handler.addEventBatchListener(new NewTabEventBatchReceiver());
LogManager.getRootLogger().addAppender(appender);
+
setShutdownAction(
new AbstractAction() {
public void actionPerformed(ActionEvent e) {
@@ -582,7 +586,6 @@
* table columns, and sets itself viewable.
*/
public void activateViewer() {
-
this.pluginRegistry =
LogManager.getLoggerRepository().getPluginRegistry();
initGUI();
1.46 +5 -0
logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html
Index: release-notes.html
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- release-notes.html 1 Dec 2004 09:36:27 -0000 1.45
+++ release-notes.html 1 Dec 2004 16:53:39 -0000 1.46
@@ -9,6 +9,11 @@
<h1>1.99.99</h2>
+<h2>1 December 2004</h2>
+<ul>
+<li>TRACE level now fully supported in Chainsaw</li>
+</ul>
+
<h2>30 November 2004</h2>
<ul>
<li>Internal events are now tagged with application and hostname properties
so they route by default to a 'chainsaw-log' tab</li>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]