L'API log4j est exactement faite pour ça ;)