View RSS Feed

Recent Blogs Posts

  1. Obtaining a Log Object

    by , 02-24-2012 at 07:19 PM
    For using the Java Common Logging SPI, use these import statements in Java class file.
    Java Code:
    import org.apache.commons.logging.Log; 
    import org.apache.commons.logging.LogFactory;
    It shall be noted that few components which use JCL might extend the Log or may be able to give “component specific” LogFactory implementation. Initialize & declare log attributes for each class definition, as following:

    Java Code:
    public class CLASS
    {
        private
    ...
    Tags: log object Add / Edit Tags
    Categories
    Commons Lang