BriteSnow / snow

A Lightweight, Google Guice, Simple, and Powerful Web Application Framework that makes building modern Web Application a breeze! Fully open source, Apache V2 licensed.
http://britesnow.com/snow
29 stars 10 forks source link

When no src/main/resources/log4j.properties snow error does not show #43

Open jeremychone opened 10 years ago

jeremychone commented 10 years ago

Step to reproduce

The problem, is that if there is no src/main/resources/log4j.properties in the source, then, we do not see the error on snow. In this case, Snow cannot start because it requires to have @Singleton on any class that have @Web... methods, but because the developer does not see the error, it is very hard to find out why.

Proposed solution

We need to find a way that even of the log4j.properties has not be configured but the slf4j-log4j12 is present, we still log those errors to the console.