LogBack Logger Addon for Roo


Want faster, flexible & more robust logging?

Have you looked at LogBack by the creator of Log4J yet???



Introducing the LogBack Addon for Roo


Features

  1. Adds the command to the Roo shell – logback setup
  2. Creates a New File: src/main/resources/logback.xml
  3. Changes to Maven POM:
    • new <property> “logback.version”
    • dependencies for logback-core, access, classic
    • java util logging and jakarta commons logging bridges
  4. Removed dependency: slf4j-log4j
  5. Logging in Your Code:
    1. Import the SLF4J Logger classes
      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;
    2. Declare the logger
      public class MyClass {
      Logger logger = LoggerFactory.getLogger(MyClass.class);

    3. Write your log statements as desired
      logger.debug("****** YOUR DEBUG MESSAGE ******");

Source code in Git:

git clone git://github.com/gordonad/logback-roo-addon.git

SEE readme.txt for more information.


About Gordon

Technology enthusiast primarily focused on Java and Open Source projects. Spring Certified Professional and Trainer. http://twitter.com/gdickens http://linkedin.com/in/gordondickens http://github.com/gordonad
This entry was posted in Jakarta Commons Logging, Java, Java Util Logging, Log4J, LogBack, Maven, Roo, SLF4J, Spring, Spring Roo and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>