[
https://issues.apache.org/jira/browse/OFBIZ-5771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178227#comment-14178227 ]
Jacques Le Roux commented on OFBIZ-5771:
----------------------------------------
Actually there is more than just putting back the error.log (see "org.ofbiz" additivity logger added in attached patch). Let me explain my point of view.
OOTB we use the COMPACT date option which shows as "20141021103936722", I think we will agree this is barely legible.
I suggest to use rather "dd HH:mm:ss,SSS" which shows as "20 20:13:14,523".
Because the files have already the year and month in names it should not be a problem. And from my experience, when browsing logs you rarely get back more than a month.
As reported at
http://markmail.org/message/cz7mypkzbaw57ixk, a Freemarker error generated by an error in an OFBiz Java file called by a Freemarker static call currently shows only in external.log. I guess it's the same for errors in custom Freemarker macros (did not test). So I added an additivity logger for Freemarker errors to error.log. I did the same to ofbiz.log and stdout.
*Below are 2 mount points:*
You might say that I'm conservative (hint, I'm not) but I prefer to not zip rolling logs. Because when browsing it's easier and with the rollover strategy I don't think the size of the logs kepts by day are a problem.
Also users should have a policy to regularly backup and clean their logs somewhere else than just keeping in runtime/logs. Notably in production where a disk full can always happen even with zipped files.
I also prefer to keep more rolled ofbiz.logs. Ten, as it was before, seems a good number to me. For error it would be 3, no change (4) for external.
*Here are some things I want to report:*
If you use *<log level="always"* in Minilang it will show as Fatal, it's the same for Debug.log(). I did not investigate this yet.
> In OFBIZ-5287 the error.log has been removed, some want to put it back
> ----------------------------------------------------------------------
>
> Key: OFBIZ-5771
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5771> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
>
> To be amended later
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)