You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2017/02/04 09:04:51 UTC

[jira] [Created] (OFBIZ-9201) Birt logging unlogical high

Nicolas Malin created OFBIZ-9201:
------------------------------------

             Summary: Birt logging unlogical high
                 Key: OFBIZ-9201
                 URL: https://issues.apache.org/jira/browse/OFBIZ-9201
             Project: OFBiz
          Issue Type: Bug
    Affects Versions: Release Branch 16.11, Release Branch 15.12, Trunk, Release Branch 14.12
            Reporter: Nicolas Malin
            Assignee: Nicolas Malin


I found a several issue to use the birt component on production

The class BirtContainer call the birt engine with hard coding level ALL oO .
The result : to generate a reporting of 100Mo we had a log file of 10Go.
{code}
        config.setTempDir(ofbizHome + File.separatorChar + "runtime" + File.separatorChar + "tempfiles");
        config.setLogConfig(ofbizHome + File.separatorChar + "runtime" + File.separatorChar + "logs" + File.separatorChar + "birt", Level.ALL);

{code}
The problem come from birt use java.util.Logger to generate log, I can't found how use the org.apache.log4j.Logger instead of, so I create a quick patch to create a level matching between Log4j and java Logger

I found some example to implement it like http://stackoverflow.com/questions/24318087/direct-birt-report-logs-to-log4j but I failed to do it on OFBiz. So if you can check my quick correction or resolve how use directly log4j it's mostly appreciate ;)

 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)