I don´t like the output of the com.sun.enterprise.server.logging.UniformLogFormatter
which might be uniform but not very helpful. So in a first step I just replaced it with the java.util.logging.SimpleFormatter
. This actually works fine but for a java.lang.ClassCastException
exception:
java.lang.ClassCastException: java.util.logging.SimpleFormatter cannot be cast to com.sun.enterprise.server.logging.UniformLogFormatter
Being a perfectionist I want to get rid of this exception and I wonder if I can create my own child class from com.sun.enterprise.server.logging.UniformLogFormatter and somehow install this class into glassfish.
How to install a custom log formatter into Glassfish?
java.util.logging.SimpleFormatter
is no longer a problem, but required (at least on GlassFish 3.1.2). See this #9609880 for a complete example. – Keeler