Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    BUG: SmartClient server-side should not depend on log4j internals

    This thread is a followup to http://forums.smartclient.com/showthread.php?t=13436.

    The constructor for com.isomorphic.base.Init has a hard-coded dependency on log4j implementation internals (org.apache.log4j.spi.RootCategory). Standard practice is for logging configuration to be handled external to the application logic and for the application to use org.apache.log4j.Logger#getLogger. Constructing logging from within the application includes unnecessary code and tightly couples the application to the internals of the logging framework, which it doesn't need to know about, making it impossible to configure logging through an alternate framework for SmartClient logging (such as slf4j).

    #2
    Not a bug, we use features of Log4J not accessible through the more generic API.

    Comment


      #3
      I posted a workaround to the original thread:

      http://forums.smartclient.com/showth...184#post107184

      Comment

      Working...
      X