[ 
https://issues.apache.org/jira/browse/LOG4J2-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750196#comment-13750196
 ] 

Gus Heck commented on LOG4J2-368:
---------------------------------

looking at revision 1517589, it seems that Pattern Layout is really not 
implemented yet:

{code}
package org.apache.log4j;

import org.apache.log4j.spi.LoggingEvent;

/**
 *
 */
public class PatternLayout extends Layout {

    @Override
    public String format(final LoggingEvent event) {
        return "";
    }

    @Override
    public boolean ignoresThrowable() {
        return true;
    }
}

{code}

I'm wondering what the intended approach is here? I may try my hand at a patch, 
but haven't played with the log4j codebase before... (I've done some 
fixes/features for Ant a long time ago and a smattering of fixes here/there 
since, but nothing in logging).
                
> PatternLayout in 1.2 bridge missing constructor
> -----------------------------------------------
>
>                 Key: LOG4J2-368
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-368
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: log4j 1.2 emulation
>    Affects Versions: 2.0-beta8
>         Environment: Velocity 1.7 hits this
>            Reporter: Gus Heck
>
> java.lang.NoSuchMethodError: 
> org.apache.log4j.PatternLayout.<init>(Ljava/lang/String;)V
>       at 
> org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:117)
>  ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85) 
> ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
>  ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269) 
> ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)
>  ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262) 
> ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.RuntimeInstance.requireInitialization(RuntimeInstance.java:302)
>  ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1531)
>  ~[velocity-1.7-dep.jar:1.7]
>       at 
> org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:343) 
> ~[velocity-1.7-dep.jar:1.7]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to