You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2014/08/18 13:25:18 UTC

[jira] [Updated] (OFBIZ-5287) Migrating from Log4j 1.2.17 to log4j2

     [ https://issues.apache.org/jira/browse/OFBIZ-5287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato updated OFBIZ-5287:
-------------------------------------

    Attachment: log4j2.patch

Patch is attached.

Here is an example of the output:
{code}
20140818114613856 |-0.0.0.0-8443-exec-4 |ServiceDispatcher   |T| Sync service [webtools/securityPermissionCheck] finished in [1] milliseconds
20140818114613925 |-0.0.0.0-8443-exec-4 |ServerHitBin        |I| Visit delegatorName=default, ServerHitBin delegatorName=default
20140818114613927 |-0.0.0.0-8443-exec-4 |ControlServlet      |T| [[[LogConfiguration(Domain:https://localhost)] Request Done- total:0.22,since last([LogConfiguration...):0.22]]
20140818114925471 |OFBiz-JobQueue-1     |PersistedServiceJob |I| Job  [Auto-create Fixed Asset Maintenances] Id [10901] -- Next runtime: Mon Aug 18 12:49:25 CEST 2014
20140818114925471 |OFBiz-JobQueue-0     |PersistedServiceJob |I| Job  [Send Email] Id [10921] -- Next runtime: Mon Aug 18 12:04:25 CEST 2014
20140818114925483 |OFBiz-JobQueue-0     |ServiceDispatcher   |T| Sync service [default/sendEmailDated] finished in [11] milliseconds
20140818114925488 |OFBiz-JobQueue-1     |ServiceEcaRule      |I| For Service ECA [fixedAssetPermissionCheck] on [return] got false for condition: [hasPermission][equals][false][true][Boolean]
20140818114925488 |OFBiz-JobQueue-1     |ServiceDispatcher   |T| Sync service [default/fixedAssetPermissionCheck] finished in [16] milliseconds
{code}

> Migrating from Log4j 1.2.17 to log4j2
> -------------------------------------
>
>                 Key: OFBIZ-5287
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5287
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: log4j2.patch
>
>
> Mostly because of the introduction of  [LMAX Disruptor library|http://martinfowler.com/articles/lmax.html] in log4j 2, but not only, I want to upgrade log4j to [log4j 2|http://logging.apache.org/log4j/2.x/]
> [The migration does not seem too hard to do| http://logging.apache.org/log4j/2.x/manual/migration.html]. I found only usage of Appender when unloading containers and of course in 
> Debug.java; Appender  and LoggerRepository  classes
> There is also [a easy to install bridge for SLF4J|https://loggapache.org/log4j/2.x/log4j-slf4j-impl/index.html]
> About LMAX Disruptor, [here is a brief introduction|http://stackoverflow.com/questions/6559308/how-does-lmaxs-disruptor-pattern-work], 
> I discovered the usage of LMAX Disruptor in log4j2 [through this blog entry|http://www.grobmeier.de/log4j-2-performance-close-to-insane-20072013.html#.UepjvGTfxFo]



--
This message was sent by Atlassian JIRA
(v6.2#6252)