Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
11.1, 11.2
-
None
-
None
-
Windows 10
Description
I have a web application running in GlassFish 5.1.0. The application uses log4j. Messages are properly written to GlassFish's server.log file and also to a log4j rolling file appender. But I cannot see those messages in the Output window opened using View Domain Server Log. I can see them in that window of a NetBeans 8.2 that is running concurrently.
I'm attaching the log4j.properties and logging.properties file; as you might recall, logging.properties is supplied as part of GF. I have not modified it.
11-05-19: The problem is related to the date and time pattern string of the Log4j Console Appender date conversion specifier. If the pattern contains colons then the console's output window doesn't show the messages. After changing it from %d{yy-MM-dd-HH:mm:ss,SSS} to %d{yy-MM-dd-HH.mm.ss,SSS} I can see the messages in the output window. This is true for both Log4j 1x and 2x.