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

For instance, deploying the service in the JMX domain allows you to dump the current configuration file using JConsole. This gives the following:

dump of the logging configuration file

If you want to use my logging service in your maven project, just add the following dependency:

XML:
  1. <dependency>
  2.       <groupid>net.nicoll</groupid>
  3.       <artifactid>log4j-service</artifactid>
  4.       <version>1.0.1</version>   
  5. </dependency>

You need of course to add my maven repository to your pom:

XML:
  1. <repositories>
  2.     <repository>
  3.         <id>nicoll-net</id>
  4.         <url>http://stephane.nicoll.net/maven</url>
  5.     </repository>
  6. </repositories>