Mandy Chung wrote:
:
As Eamonn said, I don't think we can change the default of SimpleFormatter to one line as it would break existing apps/scripts/tools that depend on the format.

When j.u.logging is enabled (e.g. the j.u.logging API is called), it will use the SimpleFormatter as the default. If the platform logger uses one-line format, the output will be inconsistent depending on whether the j.u.logging API is used by the application. Keeping the default same as j.u.logging avoids the confusion.
Right, but it seems very strange that the property only controls whether the platform logger emits the one-line format. It doesn't seem to be too much additional work to have SimpleFormatter do the same, or are you assuming that applications wanting a one-line format will configure their own formatter with java.util.logging.ConsoleHandler.formatter?

-Alan.

Reply via email to