List of usage examples for org.apache.commons.logging LogFactory getLog
public static Log getLog(String name)
From source file:com.google.cloud.hadoop.util.LogUtil.java
/** * Constructs a LogUtil instance.//w w w. jav a 2s . c o m * * @param clazz The class that uses this logger. */ public LogUtil(Class<? extends Object> clazz) { log = LogFactory.getLog(clazz); }
From source file:edu.umich.robot.soar.SetAngularVelocityCommand.java
public SetAngularVelocityCommand(Identifier wme, SoarAgent agent) throws SoarCommandError { super(wme, agent.getEvents(), LogFactory.getLog(SetAngularVelocityCommand.class)); double angular = CommandParameters.requireDouble(wme, IOConstants.ANGULAR_VELOCITY); angular = agent.getProperties().get(AgentProperties.ANGULAR_SPEED_UNIT).fromView(angular); addEvent(new DriveAngularEvent(angular), AbstractDriveEvent.class); }
From source file:com.arkatay.yada.base.ItemDispatcher.java
/** * Creates a new instance of ItemDispatcher. Creates the thread and the * queue.//from w ww . j a va 2s. co m * */ protected ItemDispatcher(String name) { thread = new Thread(this, name + "-itemdisp"); // Create a logger for this class log = LogFactory.getLog(getClass()); // create the list to act as a item queue list = new LinkedList<Object>(); }
From source file:de.kopis.glacier.commands.AbstractCommand.java
public AbstractCommand(final URL endpoint, final File credentials) throws IOException { this.log = LogFactory.getLog(this.getClass()); if (credentials != null) { this.credentials = new PropertiesCredentials(credentials); this.client = new AmazonGlacierClient(this.credentials); this.sqs = new AmazonSQSClient(this.credentials); this.sns = new AmazonSNSClient(this.credentials); }//w w w .ja v a 2s . c o m if (endpoint != null) { this.setEndpoint(endpoint); } }
From source file:edu.umich.robot.soar.GetObjectCommand.java
public GetObjectCommand(Identifier wme, SoarAgent agent) throws SoarCommandError { super(wme, agent, LogFactory.getLog(GetObjectCommand.class)); if (agent.getRobotOutput().getCarriedObject() != null) throw new SoarCommandError("Already carrying an object."); id = CommandParameters.requireInteger(wme, IOConstants.ID); addEvent(new EffectorGetObjectEvent(id), AbstractEffectorEvent.class); }
From source file:edu.umich.robot.soar.SetLinearVelocityCommand.java
public SetLinearVelocityCommand(Identifier wme, SoarAgent agent) throws SoarCommandError { super(wme, agent.getEvents(), LogFactory.getLog(SetLinearVelocityCommand.class)); double linear = CommandParameters.requireDouble(wme, IOConstants.LINEAR_VELOCITY); linear = agent.getProperties().get(AgentProperties.LINEAR_SPEED_UNIT).fromView(linear); addEvent(new DriveLinearEvent(linear), AbstractDriveEvent.class); }
From source file:com.jpeterson.littles3.bo.FileS3ObjectTest.java
/** * Create the test case//from w ww. j a v a 2s .c o m * * @param testName * name of the test case */ public FileS3ObjectTest(String testName) { super(testName); logger = LogFactory.getLog(this.getClass()); logger.debug("FileS3ObjectTest"); }
From source file:com.adaptris.security.TestKeyStore.java
/** @see TestCase */ public TestKeyStore(String testName) { super(testName); if (logR == null) { logR = LogFactory.getLog(TestKeyStore.class); }//from w w w. j a va 2 s. co m }
From source file:edu.umich.robot.soar.MotorCommand.java
public MotorCommand(Identifier wme, SoarAgent agent) throws SoarCommandError { super(wme, agent.getEvents(), LogFactory.getLog(MotorCommand.class)); double left = CommandParameters.requireDouble(wme, IOConstants.LEFT); left = Misc.clamp(left, -1.0, 1.0);/* w w w . ja v a2s.co m*/ double right = CommandParameters.requireDouble(wme, IOConstants.RIGHT); right = Misc.clamp(right, -1.0, 1.0); addEvent(new DriveThrottleEvent(left, right), AbstractDriveEvent.class); }
From source file:com.alfaariss.oa.authentication.password.jndi.JNDIPasswordHandler.java
/** * Default constructor of <code>JNDIPasswordHandler</code>. */ public JNDIPasswordHandler() { _logger = LogFactory.getLog(JNDIPasswordHandler.class); }