List of usage examples for org.apache.commons.logging LogFactory getLog
public static Log getLog(String name)
From source file:bdi4jade.examples.planselection.TransportationAgent.java
public TransportationAgent() { super(new UtilityBasedCabability()); this.log = LogFactory.getLog(this.getClass()); this.rand = new Random(System.currentTimeMillis()); }
From source file:net.sf.nmedit.jtheme.store.StorageContext.java
private Log getLog() { if (log == null) log = LogFactory.getLog(StorageContext.class); return log; }
From source file:gridool.dht.ops.SetOperation.java
@Override public Serializable execute(ILocalDirectory directory) throws GridException { final String idxName = getName(); final byte[][] keys = getKeys(); final byte[][] values = getValues(); try {/*from w w w . jav a 2 s. co m*/ directory.setMapping(idxName, keys, values); } catch (IndexException e) { LogFactory.getLog(getClass()).error(e.getMessage(), e); throw new GridException(e); } return null; }
From source file:com.microsoft.tfs.client.common.ui.framework.action.ExtendedAction.java
@Override public final void run(final IAction action) { try {/*from ww w. j a v a 2 s .co m*/ ClientTelemetryHelper.sendRunActionEvent(this); doRun(action); } catch (final Throwable t) { final String messageFormat = Messages.getString("ExtendedAction.ErrorDialogTitleFormat"); //$NON-NLS-1$ final String message = MessageFormat.format(messageFormat, getName()); LogFactory.getLog(this.getClass()).error(message, t); /* TODO: use StatusHelper here */ ErrorDialog.openError(getShell(), message, null, new Status(IStatus.ERROR, TFSCommonUIClientPlugin.PLUGIN_ID, 0, getErrorMessage(), t)); } }
From source file:com.alfaariss.oa.ManagerServlet.java
/** * Initializes the Servlet./*from ww w .ja v a 2s . com*/ * @see javax.servlet.Servlet#init(javax.servlet.ServletConfig) */ @Override public void init(ServletConfig oServletConfig) throws ServletException { try { super.init(oServletConfig); _logger = LogFactory.getLog(ManagerServlet.class); _oEngineLauncher = new EngineLauncher(); } catch (Exception e) { _logger.fatal("Initialization failed", e); } }
From source file:com.alfaariss.oa.authorization.action.ForceProfileAction.java
/** * Constructor */ public ForceProfileAction() { _logger = LogFactory.getLog(ForceProfileAction.class); _sForceProfile = null; }
From source file:com.alfaariss.oa.engine.attribute.release.configuration.ConfigurationFactory.java
/** * Creates the object. //from ww w. java 2 s. c om */ public ConfigurationFactory() { _logger = LogFactory.getLog(ConfigurationFactory.class); _mapPolicies = new HashMap<String, ConfigurationPolicy>(); _bEnabled = false; }
From source file:de.daibutsu.main.MainStart.java
private void starteAnwendung() { Log log = LogFactory.getLog(MainStart.class); if (log.isDebugEnabled()) { log.debug("Starte Anwendung."); }//from w w w . j a va2 s . com new MainTray(); }
From source file:com.jpeterson.littles3.S3ObjectRequestTest.java
/** * Create the test case/*ww w. j av a2 s .c o m*/ * * @param testName * name of the test case */ public S3ObjectRequestTest(String testName) { super(testName); logger = LogFactory.getLog(this.getClass()); logger.debug("S3ObjectTest"); }
From source file:com.alfaariss.oa.engine.idp.storage.jdbc.AbstractJDBCStorage.java
/** * Constructor. */ public AbstractJDBCStorage() { _logger = LogFactory.getLog(this.getClass()); }