IDEMPIERE-638 Fix replacing Logger with CLogger

This commit is contained in:
Carlos Ruiz 2013-03-15 22:41:36 -05:00
parent 61608cd26d
commit e7f817ec2b
9 changed files with 14 additions and 16 deletions

View File

@ -22,7 +22,6 @@ import java.security.KeyStore.PasswordProtection;
import java.security.KeyStore.SecretKeyEntry;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
@ -43,7 +42,7 @@ public class DefaultKeyStore implements IKeyStore {
private static final String IDEMPIERE_KEYSTORE = "idempiere.ks";
/** Logger */
private static Logger log = Logger.getLogger (DefaultKeyStore.class.getName());
private static CLogger log = CLogger.getCLogger (DefaultKeyStore.class.getName());
/** Adempiere Key */
private SecretKey m_key = null;

View File

@ -25,7 +25,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.print.attribute.standard.MediaSize;
@ -73,7 +72,7 @@ public class Language implements Serializable
private static Language s_baseLanguage = s_languages[0];
/** Logger */
private static Logger log = Logger.getLogger(Language.class.getName());
private static CLogger log = CLogger.getCLogger(Language.class.getName());
/**
* Get Number of Languages

View File

@ -136,7 +136,7 @@ public class Secure implements SecureInterface
private IKeyStore m_keyStore = null;
/** Logger */
private static Logger log = Logger.getLogger (Secure.class.getName());
private static CLogger log = CLogger.getCLogger (Secure.class.getName());
/**
* Initialize Cipher & Key

View File

@ -227,7 +227,7 @@ public class SecureEngine
/** The real Engine */
private SecureInterface implementation = null;
/** Logger */
private static Logger log = Logger.getLogger (SecureEngine.class.getName());
private static CLogger log = CLogger.getCLogger (SecureEngine.class.getName());
/**

View File

@ -18,7 +18,7 @@ public class StoredHtmlSrc extends MultiPartElement implements Printable {
private static final long serialVersionUID = 50303119083373138L;
/** Logger */
protected static Logger log = Logger.getLogger(StoredHtmlSrc.class.getName());
protected static CLogger log = CLogger.getCLogger(StoredHtmlSrc.class.getName());
/**

View File

@ -45,7 +45,7 @@ import javax.swing.KeyStroke;
public class Util
{
/** Logger */
private static Logger log = Logger.getLogger(Util.class.getName());
private static CLogger log = CLogger.getCLogger(Util.class.getName());
/**
* Replace String values.

View File

@ -3,20 +3,20 @@ package org.adempiere.pipo.srv;
import java.io.File;
import java.sql.Timestamp;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.adempiere.base.IDictionaryService;
import org.adempiere.pipo2.PackIn;
import org.adempiere.pipo2.Zipper;
import org.compiere.Adempiere;
import org.compiere.model.X_AD_Package_Imp_Proc;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Trx;
import org.osgi.framework.BundleContext;
public class PipoDictionaryService implements IDictionaryService {
Logger logger = Logger.getLogger(PipoDictionaryService.class.getName());
CLogger logger = CLogger.getCLogger(PipoDictionaryService.class.getName());
@Override
public void merge(BundleContext context, File packageFile) throws Exception {

View File

@ -6,24 +6,24 @@ import java.io.InputStream;
import java.net.URL;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.adempiere.base.IDictionaryService;
import org.adempiere.util.ServerContext;
import org.compiere.Adempiere;
import org.compiere.model.Query;
import org.compiere.model.X_AD_Package_Imp;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Trx;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.*;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
public class AdempiereActivator implements BundleActivator, ServiceTrackerCustomizer<IDictionaryService, IDictionaryService> {
protected final static Logger logger = Logger
.getLogger(AdempiereActivator.class.getName());
protected final static CLogger logger = CLogger.getCLogger(AdempiereActivator.class.getName());
private BundleContext context;
private ServiceTracker<IDictionaryService, IDictionaryService> serviceTracker;
private IDictionaryService service;

View File

@ -15,11 +15,11 @@ package org.adempiere.webui.util;
import java.io.Serializable;
import java.util.Properties;
import java.util.logging.Logger;
import org.compiere.model.I_AD_Preference;
import org.compiere.model.MPreference;
import org.compiere.model.Query;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Language;
@ -98,7 +98,7 @@ public final class UserPreference implements Serializable {
/** Logger */
@SuppressWarnings("unused")
private static Logger log = Logger.getLogger(UserPreference.class.getName());
private static CLogger log = CLogger.getCLogger(UserPreference.class.getName());
/**
* save user preference