Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3751 - branches/perfsonarui/src/org/perfsonar/perfsonarui

Subject: perfsonar development work

List archive

perfsonar: r3751 - branches/perfsonarui/src/org/perfsonar/perfsonarui


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3751 - branches/perfsonarui/src/org/perfsonar/perfsonarui
  • Date: Mon, 21 Apr 2008 07:37:23 -0400

Author: nina
Date: 2008-04-21 07:37:23 -0400 (Mon, 21 Apr 2008)
New Revision: 3751

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/PSLogger.java
branches/perfsonarui/src/org/perfsonar/perfsonarui/log4.properties
Log:
Logger updated to write log file into
System.getProperty("user.dir")/perfsonar.log

Modified: branches/perfsonarui/src/org/perfsonar/perfsonarui/PSLogger.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/PSLogger.java
2008-04-21 10:15:38 UTC (rev 3750)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/PSLogger.java
2008-04-21 11:37:23 UTC (rev 3751)
@@ -66,8 +66,10 @@
public static void configureLog4j(String file) {

try { // NOPMD
+
System.setProperty("file.name",System.getProperty("user.dir")+"/perfsonar.log");
org.apache.log4j.PropertyConfigurator.configure(
PSLogger.class.getResource(file));
+
} catch (NullPointerException e) { // NOPMD
System.err.println("Properties file not found: " +
e.getMessage());
//e.printStackTrace();

Modified: branches/perfsonarui/src/org/perfsonar/perfsonarui/log4.properties
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/log4.properties
2008-04-21 10:15:38 UTC (rev 3750)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/log4.properties
2008-04-21 11:37:23 UTC (rev 3751)
@@ -6,7 +6,7 @@

log4j.appender.file=org.apache.log4j.ConsoleAppender
log4j.appender.file=org.apache.log4j.FileAppender
-log4j.appender.file.File=perfsonar.log
+log4j.appender.file.File=${file.name}
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %c - %m%n




  • perfsonar: r3751 - branches/perfsonarui/src/org/perfsonar/perfsonarui, svnlog, 04/21/2008

Archive powered by MHonArc 2.6.16.

Top of Page