Results 1 to 2 of 2

Thread: Spring JDBC Appender for Log4J?

  1. #1
    Join Date
    Dec 2004
    Location
    New York
    Posts
    30

    Default Spring JDBC Appender for Log4J?

    Hi:

    I am interested in using a JDBC appender in a Spring application. I know that there is a version of a JDBC Appender that uses Hibernate already, has anyone created one that can be configured in a Spring application context?

    Also, is it best practice to use commons-logging to get to Log4J or use Log4J directly?

    Thanks!

    Dave

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    I am interested in using a JDBC appender in a Spring application. I know that there is a version of a JDBC Appender that uses Hibernate already, has anyone created one that can be configured in a Spring application context?
    Certainly make sense. I haven't done it myself, but someone must have...

    Also, is it best practice to use commons-logging to get to Log4J or use Log4J directly?
    Good question. I guess the main value proposition of Commons Logging was to allow a choice between Log4j and java.util.Logging under the covers. In practice, it seems that everyone uses Log4j rather than the "standard" way, at least on the server side. So I don't think it particularly matters either way. There may be a greater case for Commons Logging on the client side, to reduce the size of the binaries required.

    Of course if you're using Spring or many other projects, you're aready using Commons Logging anyway. Personally I tend to use Commons Logging in application code, but it's no big deal either way IMO.

    Rgds
    Rod
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Spring JDBC for unit tests?
    By amkush in forum Data
    Replies: 7
    Last Post: Aug 20th, 2008, 02:29 PM
  3. customizing Spring JDBC exceptions
    By s_nessiar in forum Data
    Replies: 1
    Last Post: Oct 3rd, 2005, 12:10 PM
  4. Replies: 2
    Last Post: Jul 19th, 2005, 07:30 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •