[logback-dev] svn commit: r1758 - in logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic: . joran/action util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Sat Aug 16 19:31:39 CEST 2008
Author: ceki
Date: Sat Aug 16 19:31:39 2008
New Revision: 1758
Modified:
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/BasicConfigurator.java
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/joran/action/ConfigurationAction.java
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
Log:
- minor changes improving status information during auto-configuration
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/BasicConfigurator.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/BasicConfigurator.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/BasicConfigurator.java Sat Aug 16 19:31:39 2008
@@ -35,7 +35,7 @@
public static void configure(LoggerContext lc) {
StatusManager sm = lc.getStatusManager();
if(sm != null) {
- sm.add(new InfoStatus("Setting up default configuration.", hiddenSingleton));
+ sm.add(new InfoStatus("Setting up default configuration.", lc));
}
ConsoleAppender<LoggingEvent> ca = new ConsoleAppender<LoggingEvent>();
ca.setContext(lc);
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java Sat Aug 16 19:31:39 2008
@@ -286,4 +286,9 @@
public void stop() {
started = false;
}
+
+ @Override
+ public String toString() {
+ return this.getClass().getName()+"["+getName()+"]";
+ }
}
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/joran/action/ConfigurationAction.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/joran/action/ConfigurationAction.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/joran/action/ConfigurationAction.java Sat Aug 16 19:31:39 2008
@@ -29,7 +29,7 @@
if (
(debugAttrib == null) || debugAttrib.equals("")
|| debugAttrib.equals("false") || debugAttrib.equals("null")) {
- addInfo("Ignoring " + INTERNAL_DEBUG_ATTR + " attribute.");
+ addInfo(INTERNAL_DEBUG_ATTR + " attribute not set");
} else {
//LoggerContext loggerContext = (LoggerContext) context;
//ConfiguratorBase.attachTemporaryConsoleAppender(context);
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java Sat Aug 16 19:31:39 2008
@@ -99,7 +99,7 @@
private void statusOnResourceSearch(String resourceName, URL url) {
StatusManager sm = loggerContext.getStatusManager();
if (url == null) {
- sm.add(new InfoStatus("Could not find resource [" + resourceName + "]",
+ sm.add(new InfoStatus("Could NOT find resource [" + resourceName + "]",
loggerContext));
} else {
sm.add(new InfoStatus("Found resource [" + resourceName + "]",
More information about the logback-dev
mailing list