Unfortunately, this is not possible in a shutdown hook without some nasty hacks, because logging may not be available anymroe at this stage (see [this](http://stackoverflow.com/questions/13825403/java-how-to-get-logger-to-work-in-shutdown-hook)).