More on logging

Chris <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
We're trying to use SLF4j with Freemarker 2.3.16 and we're having a bit 
of trouble. I keep getting:

log4j:WARN No appenders could be found for logger (freemarker.runtime).

This is bizarre, because so far as I can tell, log4j isn't on the 
classpath. We do have log4j-over-slf4j on the classpath, so maybe that's 
where it's coming from. Logger.selectLoggerLibrary(Logger.LIBRARY_NONE) 
seems to fix it, at least for now.

In any case, I saw a thread on this list, July 25, 2010, that 
Logger.selectLoggerLibrary() would support slf4j in 2.3.17. That's cool, 
that will probably do the job.

In the meantime, though, I'd like to urge you NOT to add commons-logging 
as an option to 2.3.17. Commons logging has enormous problems (which 
have been widely reported; a little googling will find them), and it's 
continuing headache to exclude commons logging from projects that are 
based on Maven. If you add a Maven dependency on commons logging to your 
POM, lots of people will have to do backflips to get rid of it. (For 
more on the problem, google "version 99 does not exist"). Just a suggestion.

Thanks. Looking forward to 2.3.17.


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.