Martin Desruisseaux ha scritto:
> Andrea Aime a écrit :

> I guess that it is pretty hard to said if geotools is the only library 
> using java logging directly. If we compare only with other Apache's 
> libraries, this is not surprising. In addition, a fair amount of 
> libraries are still constrained to using Java 1.3, which make Log4J the 
> only choice for them.

Are Spring, Hiberante and most of the projects in Codehaus managed
by Apache?
I was speaking of major open source libraries. Besides, I said
"is the only library I know", never said its the only one.


> If you really want all the Log4J features, then it may be worth to 
> consider the following project. Quoting their FAQ: "x4juli is a port of 
> the backend part of log4j. It is a full port, so it does not use wrapper 
> classes around the backend, instead it internally extends 
> java.util.logging classes.":
> 
>     http://www.x4juli.org/

Now that's interesting :-)

> 
> As about configuring the logging in an application depends way, it 
> depends what you want to do exactly. If you want to run two distinct 
> applications using different loggers (in the sense of different string 
> value in Logger.getLogger("foo") method call, where "foo" is usually - 
> but not mandatory - the java package name), then the global 
> configuration file allows you to configure independently at least the 
> logging level for each of them. Example (see the few lines at the bottom 
> of logging.properties):
> 
>    com.mycompagny.mypackage1.level = FINE
>    com.mycompagny.mypackage2.level = FINER

Global configuration file is bad, period. I won't go modifying a global
configuration file when I'm installing an application, I don't want,
and if the machine is properly managed, I won't be able neither.

Yet Simone pointed out a way to refer to an external configuration file.
Awkward, but works.

Cheers
Andrea


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to