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).
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).
Comment