List of usage examples for org.apache.commons.logging LogFactory getLog
public static Log getLog(String name)
From source file:com.cloudera.sqoop.TestFreeFormQueryImport.java
public TestFreeFormQueryImport() { this.log = LogFactory.getLog(TestFreeFormQueryImport.class.getName()); }
From source file:gridool.mapred.dht.DhtMapReduceJob.java
@Override public String reduce() throws GridException { jobConf.setInputTableName(shuffleDestDhtName); final GridJobFuture<String> result = kernel.execute(DhtReduceJob.class, jobConf); try {//w ww . j a v a 2s. c o m return result.get(); } catch (InterruptedException ie) { LogFactory.getLog(getClass()).error(ie.getMessage(), ie); throw new GridException(ie); } catch (ExecutionException ee) { LogFactory.getLog(getClass()).error(ee.getMessage(), ee); throw new GridException(ee); } }
From source file:com.alfaariss.oa.sso.web.profile.ssoquery.whitelist.config.ConfigWhitelist.java
/** * Constructor. */ public ConfigWhitelist() { _logger = LogFactory.getLog(this.getClass()); _listItems = new Vector<String>(); }
From source file:com.winvector.logistic.demo.MapReduceLogisticTrain.java
@Override public int run(final String[] args) throws Exception { if (args.length != 3) { final Log log = LogFactory.getLog(MapReduceLogisticTrain.class); log.info(Licenses.licenses);//from w ww .ja v a 2 s. c o m log.fatal("use: MapReduceLogisticTrain trainFile formula resultFile"); return -1; } final String trainFileName = args[0]; // file with input data in name=value pairs separated by tabs final String formulaStr = args[1]; // name of variable we expect to predict final String resultFileName = args[2]; run(trainFileName, formulaStr, null, resultFileName, 5); return 0; }
From source file:com.alfaariss.oa.util.saml2.SAML2ConditionsWindow.java
/** * Default constructor using default window. */ public SAML2ConditionsWindow() { super(); _logger = LogFactory.getLog(SAML2ConditionsWindow.class); }
From source file:fr.aliasource.webmail.common.message.LoadMessagesCommand.java
public LoadMessagesCommand(IMAPAccount account) { this.logger = LogFactory.getLog(getClass()); this.account = account; }
From source file:eu.planets_project.tb.impl.services.tags.DefaultServiceTagHandlerImpl.java
private DefaultServiceTagHandlerImpl() { log = LogFactory.getLog(this.getClass()); hmDefaultTags = new HashMap<String, ServiceTag>(); //parse XML and build up a list of default tags buildTagsFromXML();/*from w w w . j a va 2 s .c om*/ }
From source file:com.springsource.insight.plugin.logging.CommonsLoggingOperationCollectionAspectTest.java
@Test public void testLogFatalMessage() { String msg = "testLogFatalMessage"; Log logger = LogFactory.getLog(getClass()); logger.fatal(msg);//from w w w. j a va 2 s .c o m assertLoggingOperation(Log.class, "FATAL", msg, null); }
From source file:net.sf.nmedit.jtheme.store2.ImageElement.java
private static Log getLogger() { return LogFactory.getLog(ImageElement.class); }
From source file:com.alfaariss.oa.helper.stylesheet.handler.StreamHandler.java
/** * Constructor. */ public StreamHandler() { super(); _logger = LogFactory.getLog(StreamHandler.class); }