Announcement Announcement Module
No announcement yet.
How to log into customized destination in SpringDM powered bundle ? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to log into customized destination in SpringDM powered bundle ?


    We're using the SLF4j logging api heavily and happily in our spring-dm powered project. not only for common information but also for those profiling information.

    Now we want to those performance related information to be stored into a seperated target, for example, a file, or even a message queue or db.

    Is it possible for me to customize the spring-dm's logging service to create a separated appender for some specific logging categories?

    Or any suggestions to achieve this ?

    Thanks !

  • #2
    Hi, Shawn. This isn't possible in dm Server 1.0.x. It is, however, on the roadmap for dm Server 2.0.x:


    • #3

      Thanks for the information.

      Fortunately, I found a solution to that problem before 2.x come out.

      I can implement my own log service backed by the log4j or logback library, and override the SLF4j binding in each bundle that want to enjoy my own logging service. it works like a charm and all logging code are untouched.

      Idea borrow from

      This solution is a little bit complicated(because that should be done by DM server: ), but additional benifit is, I can now swap the logging backend or change the log level dynamically.

      Hope that helps to other guys.
      Last edited by shawn.chain; Jun 8th, 2009, 07:43 AM.