You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2004/12/30 10:40:32 UTC

DO NOT REPLY [Bug 32885] New: - Log4j should have a default Console configuration when it doesn't find the properties file

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32885>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32885

           Summary: Log4j should have a default Console configuration when
                    it doesn't find the properties file
           Product: Log4j
           Version: unspecified
          Platform: PC
               URL: http://radio.weblogs.com/0112098/2004/10/06.html#a508
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: jerome@coffeebreaks.org


>From James Strachan web log (which I completely agree with)

>From time to time on some project or via some tool or framework I use log4j
directly or indirectly through some other library. I started using log4j way
back when it was at IBM. For the most part its a reasonable piece of software
that does what it says on the tin.

However I've lost count of the times I've swore loudly at log4j for, you guessed
it, giving this lovely output...

log4j:WARN No appenders could be found for logger (foo).
log4j:WARN Please initialize the log4j system properly.

And then refusing to let you see any output whatsoever of the tool / project
you've just run. How useful!

Then you spend an hour or two messing around with whatever tool / build /
project / framework to munge some log4j.properties on the classpath / in a
system property just to see some damned logging output.

Why oh why couldn't log4j just do the useful thing of logging a warning that its
not found a configuration, but then go right ahead and use a sensible default,
logging INFO & WARN level output to the console. If nothing else it'd reduce the
amount of swearing :)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org