BF [ 2740358 ] - Logger.global is deprecated

This commit is contained in:
mjudd 2009-04-07 10:58:58 +00:00
parent 52ed420263
commit 02e80ef3ef
1 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,8 @@ package org.compiere.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.compiere.db.CConnectionDialog;
/** /**
* Trace Information * Trace Information
* *
@ -27,6 +29,9 @@ import java.util.logging.Logger;
*/ */
public class Trace public class Trace
{ {
/** Logger */
private static CLogger log = CLogger.getCLogger (CConnectionDialog.class);
/** /**
* Get Caller Array * Get Caller Array
* *
@ -110,7 +115,7 @@ public class Trace
|| (adempiereOnly && elements[i].getClassName().startsWith("org.compiere")) || (adempiereOnly && elements[i].getClassName().startsWith("org.compiere"))
) )
{ {
Logger.global.fine(i + ": " + elements[i]); log.fine(i + ": " + elements[i]);
if (first9only && ++counter > 8) if (first9only && ++counter > 8)
break; break;
} }