Consider letting MonolineFormatter send output to stderr
--------------------------------------------------------
Key: GEOT-1555
URL: http://jira.codehaus.org/browse/GEOT-1555
Project: GeoTools
Issue Type: Wish
Components: core metadata
Affects Versions: 2.5-M0, 2.4-RC0
Reporter: Martin Desruisseaux
Assignee: Martin Desruisseaux
Priority: Minor
The GeoTools {{MonolineFormatter}} is a formatter for the Java Logging
framework that formats logs on a single line, a little bit like the Log4J
output. By comparaison, the standard {{SimpleFormatter}} provided in the
standard Java library formats the log on two lines.
The default Java Logging framework send the output to the standard _error_
stream, not the standard _output_ stream. From a very quick overview I did on
some other logging frameworks, it seems to me that other frameworks do the
same. I believe this is because the standard output stream is used for writing
data processed by a program (like most Unix shell commands), and we don't want
those data to be polluted by loggings. If a standard logging stream existed, we
would use it. But since there is nothing like a logging stream, logging
frameworks fallback on the error stream instead.
In GeoTools {{MonolineFormatter}}, we wrote a patch for redirecting loggings to
the standard output stream. It was a user demand a few years ago. Given that
GeoServer uses Log4J and uDig wants to use some framework bundled in Eclipse,
maybe that old demand is not applicable anymore. I suggest to remove the hack
and let {{MonolineFormatter}} send its output to the usual stream, i.e. the
error stream like {{SimpleFormatter}} and many other logging framework do.
This changes will impact only users of the Java Logging framework. It does not
impact Log4J users.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel