Simulator/src/util/io/logger/BaseLogger.java
/**
	 * Initiates log location.
	 * 
	 * @param folderName
	 *            The name of the base folder.
	 * @return The name of the log folder.
	 */
Initiates log location.

@param folderName
The name of the base folder.
@return The name of the log folder.
Initiates log location . @param folderName The name of the base folder . @return The name of the log folder .
private String initLog(String folderName) {
		File logLocation = new File(folderName);
		if (!logLocation.exists()) {
			if (!logLocation.mkdir())
				throw new RuntimeException("Log location creation failed");
		}
		String jvmName = ManagementFactory.getRuntimeMXBean().getName();
		int index = jvmName.indexOf('@');
		if (index > 0)
			jvmName = jvmName.substring(0, index);
		logLocation = new File(System.getProperty("user.dir") + File.separator + "logfiles" + File.separator
				+ System.currentTimeMillis() + "_" + jvmName + File.separator);
		if (!logLocation.exists()) {
			if (!logLocation.mkdir())
				throw new RuntimeException("Log location creation failed");
		}
		return logLocation.toString();
	}
private String initLog ( String folderName ) { File logLocation = new File ( folderName ) ; if ( ! logLocation . exists ( ) ) { if ( ! logLocation . mkdir ( ) ) throw new RuntimeException ( "Log location creation failed" ) ; } String jvmName = ManagementFactory . getRuntimeMXBean ( ) . getName ( ) ; int index = jvmName . indexOf ( '@' ) ; if ( index > 0 ) jvmName = jvmName . substring ( 0 , index ) ; logLocation = new File ( System . getProperty ( "user.dir" ) + File . separator + "logfiles" + File . separator + System . currentTimeMillis ( ) + "_" + jvmName + File . separator ) ; if ( ! logLocation . exists ( ) ) { if ( ! logLocation . mkdir ( ) ) throw new RuntimeException ( "Log location creation failed" ) ; } return logLocation . toString ( ) ; }
Initiates log location.
Initiates log location .