protected String getDebuggingInfo() {
		final String paramsFile = "log4j.appender.PARAMS.File";

		File cwd = new File(".");
		String workingDir;

		try {
			workingDir = cwd.getCanonicalPath();
		} catch (IOException ex) {
			workingDir = "UNKNOWN";
		}

		String codesourceStr = "";

		// Try to be sneaky and print the codesource location (for orientation of user)
		try {
			ProtectionDomain domain = getClass().getProtectionDomain();
			CodeSource codesource = null;

			if (domain != null) {
				codesource = domain.getCodeSource();
			}

			codesourceStr = (codesource != null ? " code location of ParamImpl: " + codesource.
					getLocation() : "");
		} catch (Throwable failed) {
			// Okay
		}

		StringBuffer info = new StringBuffer();

		info.append("----Parameters start----");
		info.append(codesourceStr);
		info.append("\nWorking directory is ");
		info.append(workingDir);
		info.append(
				"\nParameters have loaded, there is a full parameter dump in log4j FILE appender at ");
		info.append(get(paramsFile));
		info.append("\nTo dump all params to stdout set ");
		info.append(DUMP);
		info.append(" to true; currently value is ");
		info.append(get(DUMP));
		info.append("\n----Parameters end------");

		return info.toString();
	}
protected String getDebuggingInfo ( ) { final String paramsFile = "log4j.appender.PARAMS.File" ; File cwd = new File ( "." ) ; String workingDir ; try { workingDir = cwd . getCanonicalPath ( ) ; } catch ( IOException ex ) { workingDir = "UNKNOWN" ; } String codesourceStr = "" ; try { ProtectionDomain domain = getClass ( ) . getProtectionDomain ( ) ; CodeSource codesource = null ; if ( domain != null ) { codesource = domain . getCodeSource ( ) ; } codesourceStr = ( codesource != null ? " code location of ParamImpl: " + codesource . getLocation ( ) : "" ) ; } catch ( Throwable failed ) { } StringBuffer info = new StringBuffer ( ) ; info . append ( "----Parameters start----" ) ; info . append ( codesourceStr ) ; info . append ( "\nWorking directory is " ) ; info . append ( workingDir ) ; info . append ( "\nParameters have loaded, there is a full parameter dump in log4j FILE appender at " ) ; info . append ( get ( paramsFile ) ) ; info . append ( "\nTo dump all params to stdout set " ) ; info . append ( DUMP ) ; info . append ( " to true; currently value is " ) ; info . append ( get ( DUMP ) ) ; info . append ( "\n----Parameters end------" ) ; return info . toString ( ) ; }
@return debugging information for logging on application start-up.