Logging Service 1.0.1
So after some comments I decided to perform a full m2 lifecycle and deploy my simple logging service to some repository. It's up now and available on my own website here.
That's cool, I now need to play with the release plugin. Once I have gathered the info, I will share my experience with you. Meanwhile, I implemented the new features discussed in my last post about this very simple log4j service:- The reconfigure bug is fixed, reconfigure reset the log4j configuration so any custom logger is removed
- The service now holds the URL of the current configuration file ; it is also able to dump the content of this file
If you want to use my logging service in your maven project, just add the following dependency:
XML:
-
<dependency>
-
<groupid>net.nicoll</groupid>
-
<artifactid>log4j-service</artifactid>
-
<version>1.0.1</version>
-
</dependency>
You need of course to add my maven repository to your pom:
XML:
-
<repositories>
-
<repository>
-
<id>nicoll-net</id>
-
<url>http://stephane.nicoll.net/maven</url>
-
</repository>
-
</repositories>
Wednesday 28 Dec 2005 | Stéphane | Java
Hey, any more progress on this?
I’ll probly (finally) try to use it soon in a project at work.
Re: “The reconfigure bug is fixed, reconfigure reset the log4j configuration so any custom logger is removed” : actually, it could be desired to keep those, couldn’t it? Not 100% sure about my use case here though
BTW, the xdoclet2-maven2 is now totally useable. Ping me if you need help.
Bah yeah, I think it’s pretty much ok now. I’ll deploy the sources today on the repo and I’ll send you mail.
Regarding your question, I don’t think so. Assuming you are providing a log4j.properties / log4j.xml configuration file and you would like to *re*configure logging, it sounds preferable to configure it the way it is done in the configuration file, right?
We can add a switch if you want (some boolean flag to say whether config needs to be reset or not).
I’ll check the xdoclet2 stuff and I’ll try to upgrade the project. Thanks for the feedback!