Added ability to log parameters, too.
Abstracted out the java.util.logging specific bits, in preparation for adding support for other logging frameworks.