Yep:
<Configuration packages="com.globalavl.commons.log4j" status="WARN">

Package is right and and according to Log4j-config.xsd the xml is fine as well.
I am debugging some log4j code

-----Mensaje original-----
De: Remko Popma [mailto:[email protected]] 
Enviado el: jueves, 17 de julio de 2014 13:46
Para: Log4J Users List
Asunto: Re: Cannot set up my custom layout in 2.0 (worked in rc1)

Do you have the correct packages="..." attribute specified in the 
<Configuration> element?

Sent from my iPhone

> On 2014/07/17, at 19:08, Jaime Sastre <[email protected]> wrote:
> 
> Hi,
> Congrats for the release, I been enjoying the progress of it.
> 
> My problema is that I have my layout annotated like this:
> 
> @Plugin(name = "GlobalAVLJSONLayout", category = "Core", elementType = 
> "layout", printObject = true) public class GlobalAVLJSONLayout extends 
> AbstractStringLayout {
> 
> In log4j2.xml:
> 
>                               <RollingRandomAccessFile 
> name="RollingRandomAccessFile" immediateFlush="false"
>                                               
> fileName="c:/tmp/logs/conf-app.log" 
> filePattern="conf-logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
>                                               <GlobalAVLJSONLayout 
> source="persistidor" />
>                                               <Policies>
>                                                               
> <TimeBasedTriggeringPolicy />
>                                                               
> <SizeBasedTriggeringPolicy size="100 MB" />
>                                               </Policies>
>                                               <DefaultRolloverStrategy 
> max="5" />
>                               </RollingRandomAccessFile>
> 
> It worked with rc1 but with rc2 and 2.0, I am getting this:
> 2014-07-17 12:11:20,768 ERROR RollingRandomAccessFile contains an invalid 
> element or attribute "GlobalAVLJSONLayout"
> 
> I am not able to find any related change in release notes.
> Any help?
> Thanks,
> 
> Jaime
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to