From: Julio G. <ju...@us...> - 2004-03-16 07:33:45
|
Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/services/utils/logtofile In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11452/smartfrog/services/utils/logtofile Modified Files: SFLogToFile.java Log Message: REF: All SmartFrog keys are now in "common/SmartFrogCoreKeys" @TODO: document keys Index: SFLogToFile.java =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/services/utils/logtofile/SFLogToFile.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SFLogToFile.java 30 Jan 2004 00:10:54 -0000 1.1.1.1 --- SFLogToFile.java 15 Mar 2004 19:17:12 -0000 1.2 *************** *** 31,34 **** --- 31,35 ---- import java.util.Date; + import org.smartfrog.sfcore.common.SmartFrogCoreKeys; import org.smartfrog.sfcore.common.SmartFrogException; import org.smartfrog.sfcore.common.SmartFrogLifecycleException; *************** *** 69,73 **** boolean logOnlyInRootProcess; /** Reference for processName. */ ! Reference processNameRef = new Reference("sfProcess"); /** String name for processName. */ String processName; --- 70,74 ---- boolean logOnlyInRootProcess; /** Reference for processName. */ ! Reference processNameRef = new Reference(SmartFrogCoreKeys.SF_PROCESS); /** String name for processName. */ String processName; *************** *** 138,142 **** // create the file & redirect the outputs try { ! if (processName.equals("rootProcess") || !logOnlyInRootProcess) { createFile(); --- 139,143 ---- // create the file & redirect the outputs try { ! if (processName.equals(SmartFrogCoreKeys.SF_ROOT_PROCESS) || !logOnlyInRootProcess) { createFile(); *************** *** 247,251 **** */ public synchronized void sfTerminateWith(TerminationRecord t) { ! if (processName.equals("rootProcess")) { try { System.setErr(originalSysErr); --- 248,252 ---- */ public synchronized void sfTerminateWith(TerminationRecord t) { ! if (processName.equals(SmartFrogCoreKeys.SF_ROOT_PROCESS)) { try { System.setErr(originalSysErr); |