Revision 1756

tmp/org.txm.utils/src/org/txm/utils/logger/Log.java (revision 1756)
316 316

  
317 317

  
318 318
	/**
319
	 * Log an info message
319
	 * Logs a finest level message.
320 320
	 * 
321 321
	 * @param message
322
	 * @param flag where to print the message
323 322
	 */
324 323
	public static void finest(String message) {
325 324
		if (CONSOLE && Level.FINEST.intValue() >= txm.getLevel().intValue()) {
......
329 328
	}
330 329

  
331 330
	/**
331
	 * Logs a finest level message adding the class and method of callers stack according to the specified trace depth.
332
	 * 
333
	 * @param message
334
	 * @param stackDepth
335
	 */
336
	public static void finest(String message, int stackTraceDepth) {
337
		finest(message);
338

  
339
		// Log callers
340
		String lead = ""; //$NON-NLS-1$
341
		for(int i = 2; i < 10; i++)	{
342
			lead += " "; //$NON-NLS-1$
343
			try {
344
				Log.finest(lead + Thread.currentThread().getStackTrace()[i].getClassName() + "." + Thread.currentThread().getStackTrace()[i].getMethodName()); //$NON-NLS-1$
345
			}
346
			catch (Exception e) {
347
				// nothing to do
348
			}
349
		}
350
	}
351
	
352
	/**
332 353
	 * Log an info message
333 354
	 * 
334 355
	 * @param message
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/RWorkspace.java (revision 1756)
1513 1513
		lastSafeevalExpr = expr;
1514 1514
		
1515 1515
		if(this.isLoggingEvalCommandLines())	{
1516
			Log.finest("Reval: " + expr); //$NON-NLS-1$
1516
			Log.finest("Reval: " + expr, 8); //$NON-NLS-1$
1517 1517
		}
1518 1518
		REXP r = null;
1519 1519
		try {

Also available in: Unified diff