Courses Offered: SCJP SCWCD Design patterns EJB CORE JAVA AJAX Adv. Java XML STRUTS Web services SPRING HIBERNATE  
     

Log4J

Faculty: Mr. Rajesh

Duration: One day (Only Four hours)            

Fee:  200 INR

Syllabus:

  1. Introduction to Logging
    • What is Logging
    • Importance of Logging
    • Logging Frameworks for JAVA

  2. Introduction to Log4J
    • What is Log4J?
    • Why we need to use Log4J?
    • Log4J Features
    • Log4J Advantages

  3. Log4J Setup for Java: Standalone and Web Applications
    • Download Log4J
    • log4J Jar file
    • log4j.properties

  4. Log4J Development Approaches
    • Programmatic
    • Declarative

  5. Log4J Programmatic Implementation
    • Logger
    • BasicConfiguror, PropertyConfigurator
    • Setting Logging Level

  6. Log4J Logging Levels
    • Default Logging Level
    • Available Logging Levels
      DEBUG, INFO, WARN, ERROR and FATAL

  7. Log4J Declarative Implementation: log4j.properties Configuration
    • Set Debug Level
    • Set Appender
    • Set PatternLayout
    • Set ConversionPattern

  8. Log4J Appenders
    • ConsoleAppender
    • FileAppender
    • AdminFileAppender
    • ReportFileAppender
    • Setting Single Appender
    • Setting Multiple Appenders

  9. Log4J Implementation with xml file
    • log4j.xml
    • <log4j:configuration>
    • Setting Appenders
    • Setting Log Level
    • Setting Conversion Pattern

  10. Conversion Pattern Syntax
    • TTCC
    • TTCCLayout
    • Time Elapsed
    • Thread Information
    • Logging Priority
    • Logging Category
    • NDC - Nested Diagnostic Context
    • Application Message