IDEMPIERE-4098 CLogger usage pattern clean up
This commit is contained in:
parent
496e9d4d2f
commit
f46b8afb5c
|
@ -45,7 +45,7 @@ import org.compiere.util.DB;
|
|||
public class ApplyMigrationScripts extends SvrProcess {
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ApplyMigrationScripts.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ApplyMigrationScripts.class);
|
||||
|
||||
@Override
|
||||
protected String doIt() throws Exception {
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.compiere.util.DB;
|
|||
public class SignDatabaseBuild
|
||||
{
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (SignDatabaseBuild.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (SignDatabaseBuild.class);
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ import org.compiere.util.DB;
|
|||
public class DocumentTypeVerify extends SvrProcess
|
||||
{
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (DocumentTypeVerify.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (DocumentTypeVerify.class);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,7 +64,7 @@ public class ReplicationLocal extends SvrProcess
|
|||
private Timestamp m_replicationStart = new Timestamp (m_start);
|
||||
|
||||
/** Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger(ReplicationLocal.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger(ReplicationLocal.class);
|
||||
|
||||
/** Remote class */
|
||||
private static String REMOTE = "org.compiere.process.ReplicationRemote";
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.compiere.util.Env;
|
|||
public class RoleAccessUpdate extends SvrProcess
|
||||
{
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (RoleAccessUpdate.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (RoleAccessUpdate.class);
|
||||
|
||||
/** Update Role */
|
||||
private int p_AD_Role_ID = -1;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.compiere.util.Trx;
|
|||
public class SequenceCheck extends SvrProcess
|
||||
{
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (SequenceCheck.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (SequenceCheck.class);
|
||||
|
||||
/**
|
||||
* Prepare - e.g., get Parameters.
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.compiere.util.Trx;
|
|||
public class SynchronizeTerminology extends SvrProcess
|
||||
{
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (SynchronizeTerminology.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (SynchronizeTerminology.class);
|
||||
|
||||
/**
|
||||
* Prepare - e.g., get Parameters.
|
||||
|
|
|
@ -54,7 +54,7 @@ import org.w3c.dom.NodeList;
|
|||
*/
|
||||
public class AddressLookup implements AddressLookupInterface {
|
||||
/** The logger. */
|
||||
private static CLogger log = CLogger.getCLogger(AddressLookup.class);
|
||||
private static final CLogger log = CLogger.getCLogger(AddressLookup.class);
|
||||
|
||||
/**
|
||||
* The access code which is used along with clientID to authenticate the
|
||||
|
|
|
@ -131,7 +131,7 @@ public class GraphColumn
|
|||
|
||||
/** Logger */
|
||||
@SuppressWarnings("unused")
|
||||
private static CLogger log = CLogger.getCLogger (GraphColumn.class);
|
||||
private static final CLogger log = CLogger.getCLogger (GraphColumn.class);
|
||||
/** Integer Number Format */
|
||||
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.equinox.app.IApplicationContext;
|
|||
*/
|
||||
public class SignDatabaseBuildApplication implements IApplication {
|
||||
|
||||
private static CLogger s_log = CLogger.getCLogger (SignDatabaseBuildApplication.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (SignDatabaseBuildApplication.class);
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
|
||||
|
|
|
@ -52,7 +52,7 @@ import org.osgi.service.event.Event;
|
|||
*/
|
||||
public class RequestEventHandler extends AbstractEventHandler implements ManagedService
|
||||
{
|
||||
private static CLogger s_log = CLogger.getCLogger (RequestEventHandler.class);
|
||||
private static final CLogger s_log = CLogger.getCLogger (RequestEventHandler.class);
|
||||
|
||||
@Override
|
||||
protected void doHandleEvent(Event event)
|
||||
|
|
|
@ -120,7 +120,7 @@ public abstract class AbstractExcelExporter
|
|||
public abstract boolean isPageBreak(int row, int col);
|
||||
|
||||
/** Logger */
|
||||
protected final CLogger log = CLogger.getCLogger(getClass());
|
||||
protected final transient CLogger log = CLogger.getCLogger(getClass());
|
||||
//
|
||||
protected HSSFWorkbook m_workbook;
|
||||
private HSSFDataFormat m_dataFormat;
|
||||
|
|
|
@ -70,7 +70,7 @@ import org.supercsv.prefs.CsvPreference;
|
|||
public class GridTabCSVExporter implements IGridTabExporter
|
||||
{
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(GridTabCSVExporter.class);
|
||||
private static final CLogger log = CLogger.getCLogger(GridTabCSVExporter.class);
|
||||
|
||||
@Override
|
||||
public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file,int indxDetailSelected) {
|
||||
|
|
|
@ -128,7 +128,7 @@ public class GridTabCSVImporter implements IGridTabImporter
|
|||
private boolean isSingleTrx = false;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(GridTabCSVImporter.class);
|
||||
private static final CLogger log = CLogger.getCLogger(GridTabCSVImporter.class);
|
||||
|
||||
public File fileImport(GridTab gridTab, List<GridTab> childs, InputStream filestream, Charset charset , String importMode) {
|
||||
return fileImport(gridTab, childs, filestream, charset, importMode, null);
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.compiere.util.Env;
|
|||
*/
|
||||
public class GridTabWrapper implements InvocationHandler
|
||||
{
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(GridTabWrapper.class);
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static <T> T create(GridTab gridTab, Class<T> cl)
|
||||
|
|
|
@ -67,7 +67,7 @@ public class POWrapper implements InvocationHandler
|
|||
return (T)wrapper.getPO();
|
||||
}
|
||||
|
||||
private final CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(POWrapper.class);
|
||||
private final PO po;
|
||||
|
||||
private POWrapper(PO po)
|
||||
|
|
|
@ -36,7 +36,7 @@ import org.compiere.util.Env;
|
|||
*/
|
||||
public class ProductPriceValidator implements ModelValidator {
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(ProductPriceValidator.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ProductPriceValidator.class);
|
||||
private int m_AD_Client_ID;
|
||||
|
||||
public int getAD_Client_ID() {
|
||||
|
|
|
@ -54,7 +54,7 @@ public class UUIDGenerator extends SvrProcess {
|
|||
private boolean isFillUUID = false;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(UUIDGenerator.class);
|
||||
private static final CLogger log = CLogger.getCLogger(UUIDGenerator.class);
|
||||
|
||||
/**
|
||||
* @see org.compiere.process.SvrProcess#prepare()
|
||||
|
|
|
@ -58,7 +58,7 @@ import org.compiere.util.Util;
|
|||
public abstract class AbstractDocumentSearch {
|
||||
|
||||
/** the logger */
|
||||
static CLogger log = CLogger.getCLogger(AbstractDocumentSearch.class);
|
||||
protected static final CLogger log = CLogger.getCLogger(AbstractDocumentSearch.class);
|
||||
protected boolean windowOpened = false;
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,7 +43,7 @@ public class GenerateModel
|
|||
{
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (GenerateModel.class);
|
||||
private static final CLogger log = CLogger.getCLogger (GenerateModel.class);
|
||||
|
||||
/**
|
||||
* String representation
|
||||
|
|
|
@ -79,7 +79,7 @@ public class GenerateModelJPA
|
|||
private Timestamp s_run = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (GenerateModelJPA.class);
|
||||
private static final CLogger log = CLogger.getCLogger (GenerateModelJPA.class);
|
||||
|
||||
/**
|
||||
* Add Header info to buffer
|
||||
|
|
|
@ -37,7 +37,7 @@ public class LogAuthFailure {
|
|||
private static Writer writer;
|
||||
public static String authFailureFilename = "AuthFailure.log";
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(LogAuthFailure.class);
|
||||
private static final CLogger log = CLogger.getCLogger(LogAuthFailure.class);
|
||||
|
||||
public LogAuthFailure() {
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ModelClassGenerator
|
|||
public static final String NL = "\n";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (ModelClassGenerator.class);
|
||||
private static final CLogger log = CLogger.getCLogger (ModelClassGenerator.class);
|
||||
|
||||
/** Package Name */
|
||||
private String packageName = "";
|
||||
|
|
|
@ -104,7 +104,7 @@ public class ModelInterfaceGenerator
|
|||
+" *****************************************************************************/\n";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ModelInterfaceGenerator.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ModelInterfaceGenerator.class);
|
||||
|
||||
public ModelInterfaceGenerator(int AD_Table_ID, String directory, String packageName) {
|
||||
this.packageName = packageName;
|
||||
|
|
|
@ -57,7 +57,7 @@ public final class ProcessUtil {
|
|||
public static final String JASPER_STARTER_CLASS = "org.adempiere.report.jasper.ReportStarter";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ProcessUtil.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ProcessUtil.class);
|
||||
|
||||
private ProcessUtil() {}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public class MigrateData
|
|||
} // MigrateData
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (MigrateData.class);
|
||||
private static final CLogger log = CLogger.getCLogger (MigrateData.class);
|
||||
|
||||
/**
|
||||
* Release 252c
|
||||
|
|
|
@ -321,9 +321,9 @@ public abstract class Doc
|
|||
}
|
||||
|
||||
/** Static Log */
|
||||
protected static CLogger s_log = CLogger.getCLogger(Doc.class);
|
||||
protected static final CLogger s_log = CLogger.getCLogger(Doc.class);
|
||||
/** Log per Document */
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected transient CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
/* If the transaction must be managed locally (false if it's managed externally by the caller) */
|
||||
private boolean m_manageLocalTrx;
|
||||
|
|
|
@ -63,7 +63,7 @@ public class DocLine
|
|||
/** Parent */
|
||||
private Doc m_doc = null;
|
||||
/** Log */
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected transient CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
/** Qty */
|
||||
private BigDecimal m_qty = null;
|
||||
|
|
|
@ -72,7 +72,7 @@ public final class DocTax
|
|||
private boolean m_salesTax = false;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(DocTax.class);
|
||||
private static final CLogger log = CLogger.getCLogger(DocTax.class);
|
||||
|
||||
|
||||
/** Tax Due Acct */
|
||||
|
|
|
@ -1003,7 +1003,7 @@ class Doc_AllocationTax
|
|||
m_IsSOTrx = isSOTrx;
|
||||
} // Doc_AllocationTax
|
||||
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(Doc_AllocationTax.class);
|
||||
|
||||
private MAccount m_DiscountAccount;
|
||||
private BigDecimal m_DiscountAmt;
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class Fact
|
|||
|
||||
|
||||
/** Log */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(Fact.class);
|
||||
|
||||
/** Document */
|
||||
private Doc m_doc = null;
|
||||
|
|
|
@ -52,7 +52,7 @@ public class Matcher
|
|||
/** Transaction */
|
||||
private String m_trxName = null;
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (getClass());
|
||||
private static final CLogger log = CLogger.getCLogger (Matcher.class);
|
||||
|
||||
/**
|
||||
* Matching
|
||||
|
|
|
@ -71,7 +71,7 @@ public class ProductInfo
|
|||
private BigDecimal m_qty = Env.ZERO;
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (getClass());
|
||||
private final static CLogger log = CLogger.getCLogger (ProductInfo.class);
|
||||
|
||||
/**
|
||||
* Get Product Info (Service, Revenue Recognition).
|
||||
|
|
|
@ -50,7 +50,7 @@ public class CConnection implements Serializable, Cloneable
|
|||
/** Connection */
|
||||
private volatile static CConnection s_cc = null;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (CConnection.class);
|
||||
private static final CLogger log = CLogger.getCLogger (CConnection.class);
|
||||
|
||||
/**
|
||||
* Get/Set default client/server Connection
|
||||
|
|
|
@ -92,7 +92,7 @@ public class CreateAdempiere
|
|||
private Connection m_conn = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (CreateAdempiere.class);
|
||||
private static final CLogger log = CLogger.getCLogger (CreateAdempiere.class);
|
||||
|
||||
/**
|
||||
* Create Adempiere Database
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.compiere.util.Util;
|
|||
public class Database
|
||||
{
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (Database.class);
|
||||
private static final CLogger log = CLogger.getCLogger (Database.class);
|
||||
|
||||
/** Oracle ID */
|
||||
public static String DB_ORACLE = "Oracle";
|
||||
|
|
|
@ -62,7 +62,7 @@ public class JDBCInfo
|
|||
private DatabaseMetaData m_md = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (JDBCInfo.class);
|
||||
private static final CLogger log = CLogger.getCLogger (JDBCInfo.class);
|
||||
|
||||
/**
|
||||
* List All
|
||||
|
|
|
@ -90,7 +90,7 @@ public class LDAP
|
|||
} // validate
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (LDAP.class);
|
||||
private static final CLogger log = CLogger.getCLogger (LDAP.class);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -75,7 +75,7 @@ public abstract class Convert
|
|||
protected boolean m_verbose = true;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (Convert.class);
|
||||
private static final CLogger log = CLogger.getCLogger (Convert.class);
|
||||
|
||||
private static FileOutputStream tempFileOr = null;
|
||||
private static Writer writerOr;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.compiere.util.Util;
|
|||
public abstract class Convert_SQL92 extends Convert {
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (Convert_SQL92.class);
|
||||
private static final CLogger log = CLogger.getCLogger (Convert_SQL92.class);
|
||||
|
||||
/**************************************************************************
|
||||
* Convert Outer Join.
|
||||
|
|
|
@ -58,7 +58,7 @@ public final class ImpFormat
|
|||
} // ImpFormat
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ImpFormat.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ImpFormat.class);
|
||||
|
||||
private String m_name;
|
||||
private String m_formatType;
|
||||
|
|
|
@ -100,7 +100,7 @@ public final class ImpFormatRow
|
|||
private int m_maxLength = 0;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(ImpFormatRow.class);
|
||||
|
||||
/**
|
||||
* Sequence No
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class OFX1ToXML extends InputStream implements Runnable
|
|||
private String m_ofx = "";
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(OFX1ToXML.class);
|
||||
|
||||
/**
|
||||
* Constructor for OFX1ToXML
|
||||
|
|
|
@ -117,7 +117,7 @@ public class Translation implements IApplication
|
|||
/** Table is centrally maintained */
|
||||
private boolean m_IsCentrallyMaintained = false;
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(Translation.class);
|
||||
/** Properties */
|
||||
private Properties m_ctx = null;
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class TranslationHandler extends DefaultHandler
|
|||
private Timestamp m_time = new Timestamp(System.currentTimeMillis());
|
||||
private int m_updateCount = 0;
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(TranslationHandler.class);
|
||||
private static final CLogger log = CLogger.getCLogger(TranslationHandler.class);
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.compiere.util.Env;
|
|||
public class ServerBean implements Server
|
||||
{
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ServerBean.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ServerBean.class);
|
||||
//
|
||||
/**
|
||||
* Post Immediate
|
||||
|
|
|
@ -34,7 +34,7 @@ public class StatusBean implements Status
|
|||
|
||||
/** Logging */
|
||||
@SuppressWarnings("unused")
|
||||
private static CLogger log = CLogger.getCLogger(StatusBean.class);
|
||||
private static final CLogger log = CLogger.getCLogger(StatusBean.class);
|
||||
|
||||
/**
|
||||
* Get Version (Date)
|
||||
|
|
|
@ -60,7 +60,7 @@ public class AccessSqlParser
|
|||
private static final String ON = " ON ";
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(AccessSqlParser.class);
|
||||
/** Original SQL */
|
||||
private String m_sqlOriginal;
|
||||
/** SQL Selects */
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.compiere.util.CLogger;
|
|||
public class ArchiveDB implements IArchiveStore {
|
||||
|
||||
|
||||
private final CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(ArchiveDB.class);
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.compiere.model.IArchiveStore#loadLOBData(org.compiere.model.MArchive, org.compiere.model.MStorageProvider)
|
||||
|
|
|
@ -51,7 +51,7 @@ public class ArchiveFileSystem implements IArchiveStore {
|
|||
|
||||
private String ARCHIVE_FOLDER_PLACEHOLDER = "%ARCHIVE_FOLDER%";
|
||||
|
||||
private final CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(ArchiveFileSystem.class);
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
|
@ -30,7 +30,7 @@ public class AttachmentDBSystem implements IAttachmentStore
|
|||
|
||||
/** Indicator for zip data */
|
||||
public static final String ZIP = "zip";
|
||||
private final CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(AttachmentDBSystem.class);
|
||||
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
*****************************************************************************/
|
||||
package org.compiere.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.logging.LogManager;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
@ -27,12 +26,8 @@ import java.util.logging.Logger;
|
|||
* @author Jorg Janke
|
||||
* @version $Id: CLogger.java,v 1.3 2006/08/09 16:38:47 jjanke Exp $
|
||||
*/
|
||||
public class CLogger extends Logger implements Serializable
|
||||
public class CLogger extends Logger
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4015949992093043663L;
|
||||
private static final String LAST_INFO = "org.compiere.util.CLogger.lastInfo";
|
||||
private static final String LAST_WARNING = "org.compiere.util.CLogger.lastWarning";
|
||||
private static final String LAST_ERROR = "org.compiere.util.CLogger.lastError";
|
||||
|
|
|
@ -45,7 +45,7 @@ public class MyValidator implements ModelValidator
|
|||
} // MyValidator
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(MyValidator.class);
|
||||
private static final CLogger log = CLogger.getCLogger(MyValidator.class);
|
||||
/** Client */
|
||||
private int m_AD_Client_ID = -1;
|
||||
/** User */
|
||||
|
|
|
@ -60,7 +60,7 @@ public class OrderTest implements Runnable
|
|||
|
||||
int m_errors = 0;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (OrderTest.class);
|
||||
private static final CLogger log = CLogger.getCLogger (OrderTest.class);
|
||||
|
||||
/**
|
||||
* Run
|
||||
|
|
|
@ -50,7 +50,7 @@ public class AlertTest extends AdempiereTestCase
|
|||
{
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (AlertTest.class);
|
||||
private static final CLogger log = CLogger.getCLogger (AlertTest.class);
|
||||
|
||||
/**
|
||||
* Run
|
||||
|
|
|
@ -41,7 +41,7 @@ public abstract class Config
|
|||
/** Configuration Data */
|
||||
protected ConfigurationData p_data = null;
|
||||
/** Logger */
|
||||
static CLogger log = CLogger.getCLogger (Config.class);
|
||||
protected static final CLogger log = CLogger.getCLogger (Config.class);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -98,7 +98,7 @@ public class ConfigurationData
|
|||
|
||||
|
||||
/** Static Logger */
|
||||
static CLogger log = CLogger.getCLogger (ConfigurationData.class);
|
||||
protected static final CLogger log = CLogger.getCLogger (ConfigurationData.class);
|
||||
|
||||
|
||||
/** Properties File name */
|
||||
|
|
|
@ -57,7 +57,7 @@ public class KeyStoreMgt
|
|||
} // KeyStoreMgt
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(KeyStoreMgt.class);
|
||||
private static final CLogger log = CLogger.getCLogger(KeyStoreMgt.class);
|
||||
/** KeyStore File */
|
||||
private File m_file = null;
|
||||
/** KeyStore Password */
|
||||
|
|
|
@ -19,7 +19,7 @@ import org.xml.sax.helpers.AttributesImpl;
|
|||
|
||||
public class FileElementHandler implements ElementHandler {
|
||||
|
||||
private CLogger log = CLogger.getCLogger(FileElementHandler.class);
|
||||
private static final CLogger log = CLogger.getCLogger(FileElementHandler.class);
|
||||
|
||||
public void packOut(PackOut packout, TransformerHandler packoutHandler,
|
||||
TransformerHandler docHandler, int recordId) throws Exception {
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.osgi.framework.BundleContext;
|
|||
|
||||
public class PipoDictionaryService implements IDictionaryService {
|
||||
|
||||
CLogger logger = CLogger.getCLogger(PipoDictionaryService.class.getName());
|
||||
private static final CLogger logger = CLogger.getCLogger(PipoDictionaryService.class.getName());
|
||||
|
||||
public PipoDictionaryService() {
|
||||
super();
|
||||
|
|
|
@ -55,7 +55,7 @@ import org.adempiere.pipo2.exception.DatabaseAccessException;
|
|||
*/
|
||||
public abstract class AbstractElementHandler implements ElementHandler {
|
||||
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected transient CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
|
|
|
@ -44,7 +44,7 @@ import org.compiere.util.Env;
|
|||
*/
|
||||
public class IDFinder {
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(IDFinder.class);
|
||||
private static final CLogger log = CLogger.getCLogger(IDFinder.class);
|
||||
|
||||
private static Map<String, Integer>idCache = new ConcurrentHashMap<String, Integer>();
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.compiere.util.Trx;
|
|||
public class PackIn {
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(PackIn.class);
|
||||
//update system maintain dictionary, default to false
|
||||
private boolean m_UpdateDictionary = false;
|
||||
private String m_packageDirectory = null;
|
||||
|
|
|
@ -69,7 +69,7 @@ public class PackInHandler extends DefaultHandler {
|
|||
private String packageDirectory = null;
|
||||
private int AD_Package_Imp_ID=0;
|
||||
private int AD_Package_Imp_Inst_ID=0;
|
||||
private CLogger log = CLogger.getCLogger(PackInHandler.class);
|
||||
private static final CLogger log = CLogger.getCLogger(PackInHandler.class);
|
||||
private boolean isInit = false;
|
||||
private String packageStatus = "Installing";
|
||||
private PIPOContext m_ctx = null;
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.compiere.util.Env;
|
|||
public class PackInProcess extends SvrProcess {
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(PackInProcess.class);
|
||||
//update system maintain dictionary, default to false
|
||||
private boolean m_UpdateDictionary = false;
|
||||
private String m_packageDirectory = null;
|
||||
|
|
|
@ -25,7 +25,7 @@ public class PoExporter {
|
|||
private PO po = null;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
private static final CLogger log = CLogger.getCLogger(PoExporter.class);
|
||||
private PIPOContext ctx;
|
||||
|
||||
private TransformerHandler transformerHandler;
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.w3c.dom.Document;
|
|||
public class FileImportProcessor implements IImportProcessor {
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (FileImportProcessor.class);
|
||||
protected static final CLogger log = CLogger.getCLogger (FileImportProcessor.class);
|
||||
|
||||
public void process(Properties ctx, ReplicationProcessor replicationProcessor, String trxName)
|
||||
throws Exception {
|
||||
|
|
|
@ -46,7 +46,7 @@ import org.compiere.util.CLogger;
|
|||
public class TopicImportProcessor implements IImportProcessor {
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (TopicImportProcessor.class);
|
||||
protected static final CLogger log = CLogger.getCLogger (TopicImportProcessor.class);
|
||||
|
||||
/**
|
||||
* Topic Listener
|
||||
|
|
|
@ -113,7 +113,7 @@ public class TopicListener implements MessageListener {
|
|||
private ReplicationProcessor replicationProcessor = null;
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (TopicListener.class);
|
||||
protected static final CLogger log = CLogger.getCLogger (TopicListener.class);
|
||||
|
||||
/**
|
||||
* Is Durable Subscription
|
||||
|
|
|
@ -70,7 +70,7 @@ public class ExportModelValidator implements ModelValidator {
|
|||
public static final String CTX_IsReplicationEnabled = "#IsReplicationEnabled";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ExportModelValidator.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ExportModelValidator.class);
|
||||
|
||||
/** Client */
|
||||
private int m_AD_Client_ID = -1;
|
||||
|
|
|
@ -77,7 +77,7 @@ import org.w3c.dom.Text;
|
|||
public class ExportHelper {
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ExportHelper.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ExportHelper.class);
|
||||
|
||||
/** XML Document */
|
||||
private Document outDocument = null;
|
||||
|
|
|
@ -56,7 +56,7 @@ import org.w3c.dom.Document;
|
|||
public class HDDExportProcessor implements IExportProcessor {
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (getClass());
|
||||
protected static final CLogger log = CLogger.getCLogger (HDDExportProcessor.class);
|
||||
|
||||
public void process(Properties ctx, MEXPProcessor expProcessor, Document document, Trx trx)
|
||||
throws Exception
|
||||
|
|
|
@ -69,7 +69,7 @@ import org.w3c.dom.Document;
|
|||
public class TopicExportProcessor implements IExportProcessor {
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger (getClass());
|
||||
protected static final CLogger log = CLogger.getCLogger (TopicExportProcessor.class);
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -79,11 +79,8 @@ import org.w3c.dom.NodeList;
|
|||
*/
|
||||
public class ImportHelper {
|
||||
|
||||
/** Instance Logger */
|
||||
private CLogger log = CLogger.getCLogger(ImportHelper.class);
|
||||
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger(ImportHelper.class);
|
||||
/** Logger */
|
||||
private static final CLogger log = CLogger.getCLogger(ImportHelper.class);
|
||||
|
||||
/** Custom Date Format */
|
||||
private SimpleDateFormat m_customDateFormat = null;
|
||||
|
@ -567,10 +564,10 @@ public class ImportHelper {
|
|||
.setParameters(value)
|
||||
.firstOnly();
|
||||
|
||||
if (s_log.isLoggable(Level.INFO)) s_log.info("Client_Value =[" + value + "]");
|
||||
if (log.isLoggable(Level.INFO)) log.info("Client_Value =[" + value + "]");
|
||||
if(result != null)
|
||||
{
|
||||
if (s_log.isLoggable(Level.INFO)) s_log.info("AD_Client_ID = " + result.getAD_Client_ID());
|
||||
if (log.isLoggable(Level.INFO)) log.info("AD_Client_ID = " + result.getAD_Client_ID());
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
@ -16,11 +16,10 @@ public class MD5Impl {
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private CLogger log = null;
|
||||
private static final CLogger log = CLogger.getCLogger(MD5Impl.class);
|
||||
|
||||
public MD5Impl() {
|
||||
super();
|
||||
log = CLogger.getCLogger(MD5Impl.class);
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -136,7 +136,7 @@ public class ReportStarter implements ProcessCall, ClientProcess
|
|||
{
|
||||
private static final int DEFAULT_SWAP_MAX_PAGES = 100;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ReportStarter.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ReportStarter.class);
|
||||
private static File REPORT_HOME = null;
|
||||
public static final JasperReportsContext jasperReportStartContext;
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ public final class Prop implements Serializable {
|
|||
/** Container for Properties */
|
||||
private volatile static Properties s_prop = new Properties();
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(Prop.class);
|
||||
private static final CLogger log = CLogger.getCLogger(Prop.class);
|
||||
|
||||
|
||||
private static String IMAGE_PATH(){
|
||||
|
|
|
@ -86,7 +86,7 @@ public class LdapConnectionHandler extends Thread
|
|||
/** Ldap Model */
|
||||
private MLdapProcessor m_model = null;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (LdapConnectionHandler.class);
|
||||
private static final CLogger log = CLogger.getCLogger (LdapConnectionHandler.class);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -48,7 +48,7 @@ public class LdapMessage
|
|||
/** Decoder */
|
||||
private BerDecoder decoder = null;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (LdapMessage.class);
|
||||
private static final CLogger log = CLogger.getCLogger (LdapMessage.class);
|
||||
/** Protocol Operation */
|
||||
private int m_protocolOp = -1;
|
||||
/** Message Id needed for the reply message */
|
||||
|
|
|
@ -36,7 +36,7 @@ public class LdapResult
|
|||
/** Encoder */
|
||||
private BerEncoder m_encoder = null;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (LdapResult.class);
|
||||
private static final CLogger log = CLogger.getCLogger (LdapResult.class);
|
||||
/** Error number */
|
||||
private int errNo = LDAP_SUCCESS;
|
||||
/** Error String */
|
||||
|
|
|
@ -93,7 +93,7 @@ public abstract class AdempiereServer implements Runnable
|
|||
private long m_nextWork = 0;
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected transient CLogger log = CLogger.getCLogger(getClass());
|
||||
/** System */
|
||||
protected volatile static MSystem p_system = null;
|
||||
/** Client */
|
||||
|
|
|
@ -86,7 +86,7 @@ public class AdempiereServerMgr implements ServiceTrackerCustomizer<IServerFacto
|
|||
/** Singleton */
|
||||
private static AdempiereServerMgr m_serverMgr = null;
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected static final CLogger log = CLogger.getCLogger(AdempiereServerMgr.class);
|
||||
|
||||
/**************************************************************************
|
||||
* Adempiere Server Manager
|
||||
|
|
|
@ -82,7 +82,7 @@ public class EMailProcessor
|
|||
|
||||
|
||||
/** Logger */
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected static final CLogger log = CLogger.getCLogger(EMailProcessor.class);
|
||||
|
||||
/** Process Error */
|
||||
protected static final int ERROR = 0;
|
||||
|
|
|
@ -45,7 +45,7 @@ public abstract class LogFileCallable {
|
|||
protected static final int BLOCK_SIZE = 1024 * 1024 * 5;
|
||||
protected static final String s_dirAccessFileName = "dirAccess.txt";
|
||||
|
||||
protected CLogger log = CLogger.getCLogger(getClass());
|
||||
protected transient CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
/**
|
||||
* default constructor
|
||||
|
|
|
@ -107,7 +107,7 @@ public class AdempiereMonitor extends HttpServlet
|
|||
private static final long serialVersionUID = -7455613826465213838L;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(AdempiereMonitor.class);
|
||||
private static final CLogger log = CLogger.getCLogger(AdempiereMonitor.class);
|
||||
/** The Server */
|
||||
private static IServerManager m_serverMgr = null;
|
||||
/** Message */
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.compiere.util.WebUtil;
|
|||
|
||||
public class LoggedSessionListener implements HttpSessionListener, ServletContextListener, ServerStateChangeListener{
|
||||
private static Hashtable<String, HttpSession> AD_SessionList = new Hashtable<String, HttpSession>();
|
||||
private static CLogger logger = CLogger.getCLogger(LoggedSessionListener.class);
|
||||
private static final CLogger logger = CLogger.getCLogger(LoggedSessionListener.class);
|
||||
|
||||
@Override
|
||||
public void sessionCreated(HttpSessionEvent evt) {
|
||||
|
|
|
@ -171,7 +171,7 @@ public class ValuePreference extends Window implements EventListener<Event>
|
|||
/** The Menu Icon */
|
||||
//private static String ICON_URL = "images/VPreference16.png";
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ValuePreference.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ValuePreference.class);
|
||||
private AbstractADWindowContent adwindowContent;
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,7 +60,7 @@ public class WArchive implements EventListener<Event>
|
|||
StringBuffer m_where = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (WArchive.class);
|
||||
private static final CLogger log = CLogger.getCLogger (WArchive.class);
|
||||
|
||||
/**
|
||||
* Display Request Options - New/Existing.
|
||||
|
|
|
@ -94,7 +94,7 @@ public class WRequest implements EventListener<Event>
|
|||
StringBuffer m_where = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (WRequest.class);
|
||||
private static final CLogger log = CLogger.getCLogger (WRequest.class);
|
||||
|
||||
/**
|
||||
* Display Request Options - New/Existing.
|
||||
|
|
|
@ -194,7 +194,7 @@ public class WAcctViewer extends Window implements EventListener<Event>
|
|||
private RModel m_rmodel;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(WAcctViewer.class);
|
||||
private static final CLogger log = CLogger.getCLogger(WAcctViewer.class);
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
|
|
|
@ -139,7 +139,7 @@ public class WAcctViewerData
|
|||
private String m_ref2 = null;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(WAcctViewerData.class);
|
||||
private static final CLogger log = CLogger.getCLogger(WAcctViewerData.class);
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
|
@ -103,7 +103,7 @@ public class ADSortTab extends Panel implements IADTabpanel
|
|||
} // ADSortTab
|
||||
|
||||
/** Logger */
|
||||
static CLogger log = CLogger.getCLogger(ADSortTab.class);
|
||||
protected static final CLogger log = CLogger.getCLogger(ADSortTab.class);
|
||||
private int m_WindowNo;
|
||||
private int m_AD_Table_ID;
|
||||
private String m_TableName = null;
|
||||
|
|
|
@ -84,7 +84,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
|
||||
public static final String BTNPREFIX = "Btn";
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(ADWindowToolbar.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ADWindowToolbar.class);
|
||||
|
||||
private ToolBarButton btnIgnore;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.compiere.util.Util;
|
|||
public abstract class AbstractADTabbox extends AbstractUIPart implements IADTabbox
|
||||
{
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (AbstractADTabbox.class);
|
||||
private static final CLogger log = CLogger.getCLogger (AbstractADTabbox.class);
|
||||
/** List of dependent Variables */
|
||||
private ArrayList<String> m_dependents = new ArrayList<String>();
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ public final class AEnv
|
|||
/** Workflow Window */
|
||||
private static int s_workflow_Window_ID = 0;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(AEnv.class);
|
||||
private static final CLogger log = CLogger.getCLogger(AEnv.class);
|
||||
|
||||
/** Window Cache */
|
||||
private static Map<String, CCache<Integer,GridWindowVO>> windowCache = new HashMap<String, CCache<Integer,GridWindowVO>>();
|
||||
|
|
|
@ -112,7 +112,7 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
|
|||
private static final String ON_COMPLETE = "onComplete";
|
||||
private static final String ON_STATUS_UPDATE = "onStatusUpdate";
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(AbstractProcessDialog.class);
|
||||
private static final CLogger log = CLogger.getCLogger(AbstractProcessDialog.class);
|
||||
|
||||
protected int m_WindowNo;
|
||||
private Properties m_ctx;
|
||||
|
|
|
@ -75,7 +75,7 @@ public class FeedbackRequestWindow extends Window implements EventListener<Event
|
|||
*/
|
||||
private static final long serialVersionUID = 8586980192148533197L;
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(FeedbackRequestWindow.class);
|
||||
private static final CLogger log = CLogger.getCLogger(FeedbackRequestWindow.class);
|
||||
|
||||
protected WTableDirEditor requestTypeField, priorityField, salesRepField;
|
||||
protected Textbox txtSummary;
|
||||
|
|
|
@ -99,7 +99,7 @@ public class ProcessDialog extends AbstractProcessDialog implements EventListene
|
|||
private static final String ON_OK_ECHO = "onOkEcho";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ProcessDialog.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ProcessDialog.class);
|
||||
//
|
||||
|
||||
private Table logMessageTable;
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ProcessModalDialog extends AbstractProcessDialog implements EventLi
|
|||
private static final String ON_OK_ECHO = "onOkEcho";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(ProcessModalDialog.class);
|
||||
private static final CLogger log = CLogger.getCLogger(ProcessModalDialog.class);
|
||||
//
|
||||
private String orientation;
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ public class ProcessParameterPanel extends Panel implements
|
|||
// infoWindowID of infoWindow below this dialog in case call process from infoWindow
|
||||
private int m_InfoWindowID = 0;
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger
|
||||
private static final CLogger log = CLogger
|
||||
.getCLogger(ProcessParameterPanel.class);
|
||||
|
||||
//
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue