Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Do you have the correct packages="..." attribute specified in the element? Sent from my iPhone > On 2014/07/17, at 19:08, Jaime Sastre 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: > >name="RollingRandomAccessFile" immediateFlush="false" > > fileName="c:/tmp/logs/conf-app.log" > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >source="persistidor" /> > > > > > > >max="5" /> > > > 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: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
RE: Cannot set up my custom layout in 2.0 (worked in rc1)
Yep: 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:remko.po...@gmail.com] 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 element? Sent from my iPhone > On 2014/07/17, at 19:08, Jaime Sastre 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: > >name="RollingRandomAccessFile" immediateFlush="false" > > fileName="c:/tmp/logs/conf-app.log" > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >source="persistidor" /> > > > > > > >max="5" /> > > > 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: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
The packages attribute is ignored right now. You have to make sure you build your custom plugins using log4j-core in the classpath (which is sort of necessary anyways). Also make sure you haven't disabled annotation processing (it's on by default). On 17 July 2014 07:34, Jaime Sastre wrote: > Yep: > > > 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:remko.po...@gmail.com] > 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 > element? > > Sent from my iPhone > > > On 2014/07/17, at 19:08, Jaime Sastre 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: > > > >name="RollingRandomAccessFile" immediateFlush="false" > > > fileName="c:/tmp/logs/conf-app.log" > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > >source="persistidor" /> > > > > > > > > > > > >max="5" /> > > > > > > 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: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Packages are ignored? On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: > The packages attribute is ignored right now. You have to make sure you > build your custom plugins using log4j-core in the classpath (which is sort > of necessary anyways). Also make sure you haven't disabled annotation > processing (it's on by default). > > > On 17 July 2014 07:34, Jaime Sastre wrote: > > > Yep: > > > > > > 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:remko.po...@gmail.com] > > 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 > > element? > > > > Sent from my iPhone > > > > > On 2014/07/17, at 19:08, Jaime Sastre 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: > > > > > >> name="RollingRandomAccessFile" immediateFlush="false" > > > > > fileName="c:/tmp/logs/conf-app.log" > > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > > >> source="persistidor" /> > > > > > > > > > > > > > > > > > > >> max="5" /> > > > > > > > > > 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: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > - > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > -- > Matt Sicker >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Yeah because it was only used for runtime loading. Now that log4j-core contains an annotation processor that automatically creates your plugin .dat file, there's no need for the packages attribute. It's effectively impossible to build a plugin without using log4j-core in the classpath, so it's unnecessary to support the packages attribute. In log4j-core, I had to add some special maven-compiler-plugin settings just to get log4j-core to use an annotation processor from log4j-core, but other projects (e.g., all the other log4j modules) only need to depend on log4j-core to get loaded at runtime. Now if you're using a custom plugin that was built against an older version of log4j, it might not have used the processor at the time. On 17 July 2014 10:28, Remko Popma wrote: > Packages are ignored? > > > On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: > > > The packages attribute is ignored right now. You have to make sure you > > build your custom plugins using log4j-core in the classpath (which is > sort > > of necessary anyways). Also make sure you haven't disabled annotation > > processing (it's on by default). > > > > > > On 17 July 2014 07:34, Jaime Sastre wrote: > > > > > Yep: > > > > > > > > > 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:remko.po...@gmail.com] > > > 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 > > > element? > > > > > > Sent from my iPhone > > > > > > > On 2014/07/17, at 19:08, Jaime Sastre 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: > > > > > > > >> > name="RollingRandomAccessFile" immediateFlush="false" > > > > > > > fileName="c:/tmp/logs/conf-app.log" > > > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > > > >> > source="persistidor" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > max="5" /> > > > > > > > > > > > > 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: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > - > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > -- > > Matt Sicker > > > -- Matt Sicker
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
But that only works if you use maven to build... The packages attribute always worked regardless of how you build. On Fri, Jul 18, 2014 at 12:31 AM, Matt Sicker wrote: > Yeah because it was only used for runtime loading. Now that log4j-core > contains an annotation processor that automatically creates your plugin > .dat file, there's no need for the packages attribute. It's effectively > impossible to build a plugin without using log4j-core in the classpath, so > it's unnecessary to support the packages attribute. In log4j-core, I had to > add some special maven-compiler-plugin settings just to get log4j-core to > use an annotation processor from log4j-core, but other projects (e.g., all > the other log4j modules) only need to depend on log4j-core to get loaded at > runtime. > > Now if you're using a custom plugin that was built against an older version > of log4j, it might not have used the processor at the time. > > > On 17 July 2014 10:28, Remko Popma wrote: > > > Packages are ignored? > > > > > > On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: > > > > > The packages attribute is ignored right now. You have to make sure you > > > build your custom plugins using log4j-core in the classpath (which is > > sort > > > of necessary anyways). Also make sure you haven't disabled annotation > > > processing (it's on by default). > > > > > > > > > On 17 July 2014 07:34, Jaime Sastre wrote: > > > > > > > Yep: > > > > > > > > > > > > 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:remko.po...@gmail.com] > > > > 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 > > > > element? > > > > > > > > Sent from my iPhone > > > > > > > > > On 2014/07/17, at 19:08, Jaime Sastre > 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: > > > > > > > > > >> > > name="RollingRandomAccessFile" immediateFlush="false" > > > > > > > > > fileName="c:/tmp/logs/conf-app.log" > > > > > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > > > > >> > > source="persistidor" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > max="5" /> > > > > > > > > > > > > > > > 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: log4j-user-unsubscr...@logging.apache.org > > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > > > > -- > > > Matt Sicker > > > > > > > > > -- > Matt Sicker >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Matt, can I ask you to raise a Jira for this? It would be good to get the packages attribute working again for the 2.0.1 release. On Fri, Jul 18, 2014 at 12:33 AM, Remko Popma wrote: > But that only works if you use maven to build... The packages attribute > always worked regardless of how you build. > > > On Fri, Jul 18, 2014 at 12:31 AM, Matt Sicker wrote: > >> Yeah because it was only used for runtime loading. Now that log4j-core >> contains an annotation processor that automatically creates your plugin >> .dat file, there's no need for the packages attribute. It's effectively >> impossible to build a plugin without using log4j-core in the classpath, so >> it's unnecessary to support the packages attribute. In log4j-core, I had >> to >> add some special maven-compiler-plugin settings just to get log4j-core to >> use an annotation processor from log4j-core, but other projects (e.g., all >> the other log4j modules) only need to depend on log4j-core to get loaded >> at >> runtime. >> >> Now if you're using a custom plugin that was built against an older >> version >> of log4j, it might not have used the processor at the time. >> >> >> On 17 July 2014 10:28, Remko Popma wrote: >> >> > Packages are ignored? >> > >> > >> > On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: >> > >> > > The packages attribute is ignored right now. You have to make sure you >> > > build your custom plugins using log4j-core in the classpath (which is >> > sort >> > > of necessary anyways). Also make sure you haven't disabled annotation >> > > processing (it's on by default). >> > > >> > > >> > > On 17 July 2014 07:34, Jaime Sastre wrote: >> > > >> > > > Yep: >> > > > >> > > > >> > > > 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:remko.po...@gmail.com] >> > > > 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 >> > > > element? >> > > > >> > > > Sent from my iPhone >> > > > >> > > > > On 2014/07/17, at 19:08, Jaime Sastre >> 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: >> > > > > >> > > > > > > > > name="RollingRandomAccessFile" immediateFlush="false" >> > > > > >> > > > fileName="c:/tmp/logs/conf-app.log" >> > > > >> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >> > > > > > > > > source="persistidor" /> >> > > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > > >> > > > > > max="5" /> >> > > > > >> > > > > >> > > > > 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: log4j-user-unsubscr...@logging.apache.org >> > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org >> > > > >> > > > >> > > > >> - >> > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >> > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org >> > > > >> > > > >> > > >> > > >> > > -- >> > > Matt Sicker >> > > >> > >> >> >> >> -- >> Matt Sicker >> > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
That would be nice, extension documentation is not very complete at the moment and you can go mad with this issue Sent via Xiaomi On Remko Popma , Jul 17, 2014 5:40 PM wrote: Matt, can I ask you to raise a Jira for this? It would be good to get the packages attribute working again for the 2.0.1 release. On Fri, Jul 18, 2014 at 12:33 AM, Remko Popma wrote: > But that only works if you use maven to build... The packages attribute > always worked regardless of how you build. > > > On Fri, Jul 18, 2014 at 12:31 AM, Matt Sicker wrote: > >> Yeah because it was only used for runtime loading. Now that log4j-core >> contains an annotation processor that automatically creates your plugin >> .dat file, there's no need for the packages attribute. It's effectively >> impossible to build a plugin without using log4j-core in the classpath, so >> it's unnecessary to support the packages attribute. In log4j-core, I had >> to >> add some special maven-compiler-plugin settings just to get log4j-core to >> use an annotation processor from log4j-core, but other projects (e.g., all >> the other log4j modules) only need to depend on log4j-core to get loaded >> at >> runtime. >> >> Now if you're using a custom plugin that was built against an older >> version >> of log4j, it might not have used the processor at the time. >> >> >> On 17 July 2014 10:28, Remko Popma wrote: >> >> > Packages are ignored? >> > >> > >> > On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: >> > >> > > The packages attribute is ignored right now. You have to make sure you >> > > build your custom plugins using log4j-core in the classpath (which is >> > sort >> > > of necessary anyways). Also make sure you haven't disabled annotation >> > > processing (it's on by default). >> > > >> > > >> > > On 17 July 2014 07:34, Jaime Sastre wrote: >> > > >> > > > Yep: >> > > > >> > > > >> > > > 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:remko.po...@gmail.com] >> > > > 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 >> > > > element? >> > > > >> > > > Sent from my iPhone >> > > > >> > > > > On 2014/07/17, at 19:08, Jaime Sastre >> 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: >> > > > > >> > > > > > > > > name="RollingRandomAccessFile" immediateFlush="false" >> > > > > >> > > > fileName="c:/tmp/logs/conf-app.log" >> > > > >> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >> > > > > > > > > source="persistidor" /> >> > > > > >> > > > > >> > > > >> > > > > >> > > > >> > > > > >> > > > > >> > > > > > max="5" /> >> > > > > >> > > > > >> > > > > 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: log4j-user-unsubscr...@logging.apache.org >> > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org >> > > > >> > > > >> > > > >> - >> > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >> > > > For additional commands, e-mail: log4j-user-h...@logging.apache.org >> > > > >> > > > >> > > >> > > >> > > -- >> > > Matt Sicker >> > > >> > >> >> >> >> -- >> Matt Sicker >> > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
+1 I agree packages, or well documented alternative is important for our custom plugins! > On Jul 17, 2014, at 8:40 AM, Remko Popma wrote: > > Matt, can I ask you to raise a Jira for this? It would be good to get the > packages attribute working again for the 2.0.1 release. > > >> On Fri, Jul 18, 2014 at 12:33 AM, Remko Popma wrote: >> >> But that only works if you use maven to build... The packages attribute >> always worked regardless of how you build. >> >> >>> On Fri, Jul 18, 2014 at 12:31 AM, Matt Sicker wrote: >>> >>> Yeah because it was only used for runtime loading. Now that log4j-core >>> contains an annotation processor that automatically creates your plugin >>> .dat file, there's no need for the packages attribute. It's effectively >>> impossible to build a plugin without using log4j-core in the classpath, so >>> it's unnecessary to support the packages attribute. In log4j-core, I had >>> to >>> add some special maven-compiler-plugin settings just to get log4j-core to >>> use an annotation processor from log4j-core, but other projects (e.g., all >>> the other log4j modules) only need to depend on log4j-core to get loaded >>> at >>> runtime. >>> >>> Now if you're using a custom plugin that was built against an older >>> version >>> of log4j, it might not have used the processor at the time. >>> >>> >>>> On 17 July 2014 10:28, Remko Popma wrote: >>>> >>>> Packages are ignored? >>>> >>>> >>>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: >>>>> >>>>> The packages attribute is ignored right now. You have to make sure you >>>>> build your custom plugins using log4j-core in the classpath (which is >>>> sort >>>>> of necessary anyways). Also make sure you haven't disabled annotation >>>>> processing (it's on by default). >>>>> >>>>> >>>>>> On 17 July 2014 07:34, Jaime Sastre wrote: >>>>>> >>>>>> Yep: >>>>>> >>>>>> >>>>>> 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:remko.po...@gmail.com] >>>>>> 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 >>>>>> element? >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre >>> 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: >>>>>>> >>>>>>> >>>>> name="RollingRandomAccessFile" immediateFlush="false" >>>>>> fileName="c:/tmp/logs/conf-app.log" >>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >>>>>>> >>>>> source="persistidor" /> >>>>>>> >>>>>> >>>>>> >>>>>>> >>>> >>>>> max="5" /> >>>>>>> >>>>>>> >>>>>>> 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: log4j-user-unsubscr...@logging.apache.org >>>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>> - >>>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >>>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>>>> >>>>> >>>>> -- >>>>> Matt Sicker >>> >>> >>> >>> -- >>> Matt Sicker >> >> - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Matt, can you update the documentation to reflect these changes and tell users how to make it work with and without Maven? Ralph On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > Yeah because it was only used for runtime loading. Now that log4j-core > contains an annotation processor that automatically creates your plugin > .dat file, there's no need for the packages attribute. It's effectively > impossible to build a plugin without using log4j-core in the classpath, so > it's unnecessary to support the packages attribute. In log4j-core, I had to > add some special maven-compiler-plugin settings just to get log4j-core to > use an annotation processor from log4j-core, but other projects (e.g., all > the other log4j modules) only need to depend on log4j-core to get loaded at > runtime. > > Now if you're using a custom plugin that was built against an older version > of log4j, it might not have used the processor at the time. > > > On 17 July 2014 10:28, Remko Popma wrote: > >> Packages are ignored? >> >> >> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: >> >>> The packages attribute is ignored right now. You have to make sure you >>> build your custom plugins using log4j-core in the classpath (which is >> sort >>> of necessary anyways). Also make sure you haven't disabled annotation >>> processing (it's on by default). >>> >>> >>> On 17 July 2014 07:34, Jaime Sastre wrote: >>> >>>> Yep: >>>> >>>> >>>> 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:remko.po...@gmail.com] >>>> 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 >>>> element? >>>> >>>> Sent from my iPhone >>>> >>>>> On 2014/07/17, at 19:08, Jaime Sastre 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: >>>>> >>>>> >>> name="RollingRandomAccessFile" immediateFlush="false" >>>>> >>>> fileName="c:/tmp/logs/conf-app.log" >>>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >>>>> >>> source="persistidor" /> >>>>> >>>>> >>>> >>>>> >>>> >>>>> >>>>> >> >>> max="5" /> >>>>> >>>>> >>>>> 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: log4j-user-unsubscr...@logging.apache.org >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>>> >>>> >>> >>> >>> -- >>> Matt Sicker >>> >> > > > > -- > Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
I am getting similiar errors: "error: package org.apache.logging.log4j.core.helpers does not exist" when trying to compile a custom appender that worked with 2.0-rc1. Where was this stuff moved? Thanks, David On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers wrote: > Matt, can you update the documentation to reflect these changes and tell > users how to make it work with and without Maven? > > Ralph > > On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > > > Yeah because it was only used for runtime loading. Now that log4j-core > > contains an annotation processor that automatically creates your plugin > > .dat file, there's no need for the packages attribute. It's effectively > > impossible to build a plugin without using log4j-core in the classpath, > so > > it's unnecessary to support the packages attribute. In log4j-core, I had > to > > add some special maven-compiler-plugin settings just to get log4j-core to > > use an annotation processor from log4j-core, but other projects (e.g., > all > > the other log4j modules) only need to depend on log4j-core to get loaded > at > > runtime. > > > > Now if you're using a custom plugin that was built against an older > version > > of log4j, it might not have used the processor at the time. > > > > > > On 17 July 2014 10:28, Remko Popma wrote: > > > >> Packages are ignored? > >> > >> > >> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: > >> > >>> The packages attribute is ignored right now. You have to make sure you > >>> build your custom plugins using log4j-core in the classpath (which is > >> sort > >>> of necessary anyways). Also make sure you haven't disabled annotation > >>> processing (it's on by default). > >>> > >>> > >>> On 17 July 2014 07:34, Jaime Sastre wrote: > >>> > >>>> Yep: > >>>> > >>>> > >>>> 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:remko.po...@gmail.com] > >>>> 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 > >>>> element? > >>>> > >>>> Sent from my iPhone > >>>> > >>>>> On 2014/07/17, at 19:08, Jaime Sastre 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: > >>>>> > >>>>> >>>> name="RollingRandomAccessFile" immediateFlush="false" > >>>>> > >>>> fileName="c:/tmp/logs/conf-app.log" > >>>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > >>>>> >>>> source="persistidor" /> > >>>>> > >>>>> > >>>> > >>>>> > >>>> > >>>>> > >>>>> > >> >>>> max="5" /> > >>>>> > >>>>> > >>>>> 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: log4j-user-unsubscr...@logging.apache.org > >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >>>> > >>>> > >>>> - > >>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >>>> > >>>> > >>> > >>> > >>> -- > >>> Matt Sicker > >>> > >> > > > > > > > > -- > > Matt Sicker > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Try looking in the util package. Ralph On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > I am getting similiar errors: "error: package > org.apache.logging.log4j.core.helpers does not exist" when trying to > compile a custom appender that worked with 2.0-rc1. > > Where was this stuff moved? > > Thanks, > > David > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers > wrote: > >> Matt, can you update the documentation to reflect these changes and tell >> users how to make it work with and without Maven? >> >> Ralph >> >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: >> >>> Yeah because it was only used for runtime loading. Now that log4j-core >>> contains an annotation processor that automatically creates your plugin >>> .dat file, there's no need for the packages attribute. It's effectively >>> impossible to build a plugin without using log4j-core in the classpath, >> so >>> it's unnecessary to support the packages attribute. In log4j-core, I had >> to >>> add some special maven-compiler-plugin settings just to get log4j-core to >>> use an annotation processor from log4j-core, but other projects (e.g., >> all >>> the other log4j modules) only need to depend on log4j-core to get loaded >> at >>> runtime. >>> >>> Now if you're using a custom plugin that was built against an older >> version >>> of log4j, it might not have used the processor at the time. >>> >>> >>> On 17 July 2014 10:28, Remko Popma wrote: >>> >>>> Packages are ignored? >>>> >>>> >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker wrote: >>>> >>>>> The packages attribute is ignored right now. You have to make sure you >>>>> build your custom plugins using log4j-core in the classpath (which is >>>> sort >>>>> of necessary anyways). Also make sure you haven't disabled annotation >>>>> processing (it's on by default). >>>>> >>>>> >>>>> On 17 July 2014 07:34, Jaime Sastre wrote: >>>>> >>>>>> Yep: >>>>>> >>>>>> >>>>>> 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:remko.po...@gmail.com] >>>>>> 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 >>>>>> element? >>>>>> >>>>>> Sent from my iPhone >>>>>> >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre 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: >>>>>>> >>>>>>> >>>>> name="RollingRandomAccessFile" immediateFlush="false" >>>>>>> >>>>>> fileName="c:/tmp/logs/conf-app.log" >>>>>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >>>>>>> >>>>> source="persistidor" /> >>>>>>> >>>>>>> >>>>>> >>>>>>> >>>>>> >>>>>>> >>>>>>> >>>> >>>>> max="5" /> >>>>>>> >>>>>>> >>>>>>> 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: log4j-user-unsubscr...@logging.apache.org >>>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>>>>> >>>>>> >>>>>> - >>>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >>>>>> For additional commands, e-mail: log4j-user-h...@logging.apache.org >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Matt Sicker >>>>> >>>> >>> >>> >>> >>> -- >>> Matt Sicker >> >> >> - >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >> For additional commands, e-mail: log4j-user-h...@logging.apache.org >> >> - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
I'll add some documentation about it. However, the annotation processor would work with Ant or even just Make. It's part of javac. On 17 July 2014 13:48, Ralph Goers wrote: > Try looking in the util package. > > Ralph > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > I am getting similiar errors: "error: package > > org.apache.logging.log4j.core.helpers does not exist" when trying to > > compile a custom appender that worked with 2.0-rc1. > > > > Where was this stuff moved? > > > > Thanks, > > > > David > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers > > > wrote: > > > >> Matt, can you update the documentation to reflect these changes and tell > >> users how to make it work with and without Maven? > >> > >> Ralph > >> > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > >> > >>> Yeah because it was only used for runtime loading. Now that log4j-core > >>> contains an annotation processor that automatically creates your plugin > >>> .dat file, there's no need for the packages attribute. It's effectively > >>> impossible to build a plugin without using log4j-core in the classpath, > >> so > >>> it's unnecessary to support the packages attribute. In log4j-core, I > had > >> to > >>> add some special maven-compiler-plugin settings just to get log4j-core > to > >>> use an annotation processor from log4j-core, but other projects (e.g., > >> all > >>> the other log4j modules) only need to depend on log4j-core to get > loaded > >> at > >>> runtime. > >>> > >>> Now if you're using a custom plugin that was built against an older > >> version > >>> of log4j, it might not have used the processor at the time. > >>> > >>> > >>> On 17 July 2014 10:28, Remko Popma wrote: > >>> > >>>> Packages are ignored? > >>>> > >>>> > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker > wrote: > >>>> > >>>>> The packages attribute is ignored right now. You have to make sure > you > >>>>> build your custom plugins using log4j-core in the classpath (which is > >>>> sort > >>>>> of necessary anyways). Also make sure you haven't disabled annotation > >>>>> processing (it's on by default). > >>>>> > >>>>> > >>>>> On 17 July 2014 07:34, Jaime Sastre wrote: > >>>>> > >>>>>> Yep: > >>>>>> > >>>>>> > >>>>>> 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:remko.po...@gmail.com] > >>>>>> 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 > >>>>>> element? > >>>>>> > >>>>>> Sent from my iPhone > >>>>>> > >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre > 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: > >>>>>>> > >>>>>>> >>>>>> name="RollingRandomAccessFile" immediateFlush="false" > >>>>>>> > >>>>>>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
But if you get the wrong versión of javac it wont'be noticed Sent via Xiaomi On Matt Sicker , Jul 17, 2014 9:20 PM wrote: I'll add some documentation about it. However, the annotation processor would work with Ant or even just Make. It's part of javac. On 17 July 2014 13:48, Ralph Goers wrote: > Try looking in the util package. > > Ralph > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > I am getting similiar errors: "error: package > > org.apache.logging.log4j.core.helpers does not exist" when trying to > > compile a custom appender that worked with 2.0-rc1. > > > > Where was this stuff moved? > > > > Thanks, > > > > David > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers > > > wrote: > > > >> Matt, can you update the documentation to reflect these changes and tell > >> users how to make it work with and without Maven? > >> > >> Ralph > >> > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > >> > >>> Yeah because it was only used for runtime loading. Now that log4j-core > >>> contains an annotation processor that automatically creates your plugin > >>> .dat file, there's no need for the packages attribute. It's effectively > >>> impossible to build a plugin without using log4j-core in the classpath, > >> so > >>> it's unnecessary to support the packages attribute. In log4j-core, I > had > >> to > >>> add some special maven-compiler-plugin settings just to get log4j-core > to > >>> use an annotation processor from log4j-core, but other projects (e.g., > >> all > >>> the other log4j modules) only need to depend on log4j-core to get > loaded > >> at > >>> runtime. > >>> > >>> Now if you're using a custom plugin that was built against an older > >> version > >>> of log4j, it might not have used the processor at the time. > >>> > >>> > >>> On 17 July 2014 10:28, Remko Popma wrote: > >>> > >>>> Packages are ignored? > >>>> > >>>> > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker > wrote: > >>>> > >>>>> The packages attribute is ignored right now. You have to make sure > you > >>>>> build your custom plugins using log4j-core in the classpath (which is > >>>> sort > >>>>> of necessary anyways). Also make sure you haven't disabled annotation > >>>>> processing (it's on by default). > >>>>> > >>>>> > >>>>> On 17 July 2014 07:34, Jaime Sastre wrote: > >>>>> > >>>>>> Yep: > >>>>>> > >>>>>> > >>>>>> 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:remko.po...@gmail.com] > >>>>>> 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 > >>>>>> element? > >>>>>> > >>>>>> Sent from my iPhone > >>>>>> > >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre > 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: > >>>>>>> > >>>>>>>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
What do you mean? You can't compile anything using log4j-core in a version of javac older than 1.6. On 17 July 2014 14:40, Jaime Sastre wrote: > But if you get the wrong versión of javac it wont'be noticed > > > Sent via Xiaomi > > On Matt Sicker , Jul 17, 2014 9:20 PM wrote: > I'll add some documentation about it. However, the annotation processor > would work with Ant or even just Make. It's part of javac. > > > On 17 July 2014 13:48, Ralph Goers wrote: > > > Try looking in the util package. > > > > Ralph > > > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > > > I am getting similiar errors: "error: package > > > org.apache.logging.log4j.core.helpers does not exist" when trying to > > > compile a custom appender that worked with 2.0-rc1. > > > > > > Where was this stuff moved? > > > > > > Thanks, > > > > > > David > > > > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > ralph.go...@dslextreme.com > > > > > > wrote: > > > > > >> Matt, can you update the documentation to reflect these changes and > tell > > >> users how to make it work with and without Maven? > > >> > > >> Ralph > > >> > > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > > >> > > >>> Yeah because it was only used for runtime loading. Now that > log4j-core > > >>> contains an annotation processor that automatically creates your > plugin > > >>> .dat file, there's no need for the packages attribute. It's > effectively > > >>> impossible to build a plugin without using log4j-core in the > classpath, > > >> so > > >>> it's unnecessary to support the packages attribute. In log4j-core, I > > had > > >> to > > >>> add some special maven-compiler-plugin settings just to get > log4j-core > > to > > >>> use an annotation processor from log4j-core, but other projects > (e.g., > > >> all > > >>> the other log4j modules) only need to depend on log4j-core to get > > loaded > > >> at > > >>> runtime. > > >>> > > >>> Now if you're using a custom plugin that was built against an older > > >> version > > >>> of log4j, it might not have used the processor at the time. > > >>> > > >>> > > >>> On 17 July 2014 10:28, Remko Popma wrote: > > >>> > > >>>> Packages are ignored? > > >>>> > > >>>> > > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker > > wrote: > > >>>> > > >>>>> The packages attribute is ignored right now. You have to make sure > > you > > >>>>> build your custom plugins using log4j-core in the classpath (which > is > > >>>> sort > > >>>>> of necessary anyways). Also make sure you haven't disabled > annotation > > >>>>> processing (it's on by default). > > >>>>> > > >>>>> > > >>>>> On 17 July 2014 07:34, Jaime Sastre wrote: > > >>>>> > > >>>>>> Yep: > > >>>>>> 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:remko.po...@gmail.com] > > >>>>>> 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 > > >>>>>> element? > > >>>>>> > > >>>>>> Sent from my iPhone > > >>>>>> > > >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre > > wrote: > > >>>>>>> > > >>>>>>> Hi, > > >>>>>>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Sorry, I thought 1.5 could compile but services stuff was in 1.6, never mind Sent via Xiaomi On Matt Sicker , Jul 17, 2014 11:50 PM wrote: What do you mean? You can't compile anything using log4j-core in a version of javac older than 1.6. On 17 July 2014 14:40, Jaime Sastre wrote: > But if you get the wrong versión of javac it wont'be noticed > > > Sent via Xiaomi > > On Matt Sicker , Jul 17, 2014 9:20 PM wrote: > I'll add some documentation about it. However, the annotation processor > would work with Ant or even just Make. It's part of javac. > > > On 17 July 2014 13:48, Ralph Goers wrote: > > > Try looking in the util package. > > > > Ralph > > > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > > > I am getting similiar errors: "error: package > > > org.apache.logging.log4j.core.helpers does not exist" when trying to > > > compile a custom appender that worked with 2.0-rc1. > > > > > > Where was this stuff moved? > > > > > > Thanks, > > > > > > David > > > > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > ralph.go...@dslextreme.com > > > > > > wrote: > > > > > >> Matt, can you update the documentation to reflect these changes and > tell > > >> users how to make it work with and without Maven? > > >> > > >> Ralph > > >> > > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > > >> > > >>> Yeah because it was only used for runtime loading. Now that > log4j-core > > >>> contains an annotation processor that automatically creates your > plugin > > >>> .dat file, there's no need for the packages attribute. It's > effectively > > >>> impossible to build a plugin without using log4j-core in the > classpath, > > >> so > > >>> it's unnecessary to support the packages attribute. In log4j-core, I > > had > > >> to > > >>> add some special maven-compiler-plugin settings just to get > log4j-core > > to > > >>> use an annotation processor from log4j-core, but other projects > (e.g., > > >> all > > >>> the other log4j modules) only need to depend on log4j-core to get > > loaded > > >> at > > >>> runtime. > > >>> > > >>> Now if you're using a custom plugin that was built against an older > > >> version > > >>> of log4j, it might not have used the processor at the time. > > >>> > > >>> > > >>> On 17 July 2014 10:28, Remko Popma wrote: > > >>> > > >>>> Packages are ignored? > > >>>> > > >>>> > > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker > > wrote: > > >>>> > > >>>>> The packages attribute is ignored right now. You have to make sure > > you > > >>>>> build your custom plugins using log4j-core in the classpath (which > is > > >>>> sort > > >>>>> of necessary anyways). Also make sure you haven't disabled > annotation > > >>>>> processing (it's on by default). > > >>>>> > > >>>>> > > >>>>> On 17 July 2014 07:34, Jaime Sastre wrote: > > >>>>> > > >>>>>> Yep: > > >>>>>> 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:remko.po...@gmail.com] > > >>>>>> 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 > > >>>>>> element? > > >>>>>> > > >>>>>> Sent from my iPhone > > >>>>>> > > >>>>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
Alright, I've updated the manual to explain the current plugin process. On 17 July 2014 17:17, Jaime Sastre wrote: > Sorry, I thought 1.5 could compile but services stuff was in 1.6, never > mind > > > Sent via Xiaomi > > On Matt Sicker , Jul 17, 2014 11:50 PM wrote: > What do you mean? You can't compile anything using log4j-core in a version > of javac older than 1.6. > > > On 17 July 2014 14:40, Jaime Sastre wrote: > > > But if you get the wrong versión of javac it wont'be noticed > > > > > > Sent via Xiaomi > > > > On Matt Sicker , Jul 17, 2014 9:20 PM wrote: > > I'll add some documentation about it. However, the annotation processor > > would work with Ant or even just Make. It's part of javac. > > > > > > On 17 July 2014 13:48, Ralph Goers wrote: > > > > > Try looking in the util package. > > > > > > Ralph > > > > > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > > > > > I am getting similiar errors: "error: package > > > > org.apache.logging.log4j.core.helpers does not exist" when trying to > > > > compile a custom appender that worked with 2.0-rc1. > > > > > > > > Where was this stuff moved? > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > ralph.go...@dslextreme.com > > > > > > > > wrote: > > > > > > > >> Matt, can you update the documentation to reflect these changes and > > tell > > > >> users how to make it work with and without Maven? > > > >> > > > >> Ralph > > > >> > > > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker wrote: > > > >> > > > >>> Yeah because it was only used for runtime loading. Now that > > log4j-core > > > >>> contains an annotation processor that automatically creates your > > plugin > > > >>> .dat file, there's no need for the packages attribute. It's > > effectively > > > >>> impossible to build a plugin without using log4j-core in the > > classpath, > > > >> so > > > >>> it's unnecessary to support the packages attribute. In log4j-core, > I > > > had > > > >> to > > > >>> add some special maven-compiler-plugin settings just to get > > log4j-core > > > to > > > >>> use an annotation processor from log4j-core, but other projects > > (e.g., > > > >> all > > > >>> the other log4j modules) only need to depend on log4j-core to get > > > loaded > > > >> at > > > >>> runtime. > > > >>> > > > >>> Now if you're using a custom plugin that was built against an older > > > >> version > > > >>> of log4j, it might not have used the processor at the time. > > > >>> > > > >>> > > > >>> On 17 July 2014 10:28, Remko Popma wrote: > > > >>> > > > >>>> Packages are ignored? > > > >>>> > > > >>>> > > > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker > > > wrote: > > > >>>> > > > >>>>> The packages attribute is ignored right now. You have to make > sure > > > you > > > >>>>> build your custom plugins using log4j-core in the classpath > (which > > is > > > >>>> sort > > > >>>>> of necessary anyways). Also make sure you haven't disabled > > annotation > > > >>>>> processing (it's on by default). > > > >>>>> > > > >>>>> > > > >>>>> On 17 July 2014 07:34, Jaime Sastre > wrote: > > > >>>>> > > > >>>>>> Yep: > > > >>>>>> > status="WARN"> > > > >>>>>> > > > >>>>>> Package is right and and according to Log4j-config.xsd the xml > is > > > fine > > > >>>> as > > > >>>>>> well. > > > >>>>>> I am debugging some log4j code > > > >>>>>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
The manual still has a few places where the packages attribute for custom plugins is mentioned: * Configuration > Configuration with XML (both in the table and in the strict XML example) * Configuration > Configuration with Jason (the first example and the second (Routing) example) * Configuration > Configuring Filters (the example) * Configuration > Property Substitution (the example) * Configuration > Status Messages (the example) * Appenders > (most examples) * Filters > (most examples) If this attribute no longer works we should probably remove all references. We should also mention in the release notes that this mechanism no longer works and users need to rebuild their custom plugins in order to use them with log4j-2.0. One concern: if I let my IDE do the compilation for my custom plugin, and I create a jar by using my IDE's "Export Jar" function, will this jar file include the plugin metadata file? (If not we should warn users about this.) On Fri, Jul 18, 2014 at 10:38 AM, Matt Sicker wrote: > Alright, I've updated the manual to explain the current plugin process. > > > On 17 July 2014 17:17, Jaime Sastre wrote: > > > Sorry, I thought 1.5 could compile but services stuff was in 1.6, never > > mind > > > > > > Sent via Xiaomi > > > > On Matt Sicker , Jul 17, 2014 11:50 PM wrote: > > What do you mean? You can't compile anything using log4j-core in a > version > > of javac older than 1.6. > > > > > > On 17 July 2014 14:40, Jaime Sastre wrote: > > > > > But if you get the wrong versión of javac it wont'be noticed > > > > > > > > > Sent via Xiaomi > > > > > > On Matt Sicker , Jul 17, 2014 9:20 PM wrote: > > > I'll add some documentation about it. However, the annotation processor > > > would work with Ant or even just Make. It's part of javac. > > > > > > > > > On 17 July 2014 13:48, Ralph Goers wrote: > > > > > > > Try looking in the util package. > > > > > > > > Ralph > > > > > > > > On Jul 17, 2014, at 9:53 AM, David KOCH wrote: > > > > > > > > > I am getting similiar errors: "error: package > > > > > org.apache.logging.log4j.core.helpers does not exist" when trying > to > > > > > compile a custom appender that worked with 2.0-rc1. > > > > > > > > > > Where was this stuff moved? > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > > > > > > On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > > ralph.go...@dslextreme.com > > > > > > > > > > wrote: > > > > > > > > > >> Matt, can you update the documentation to reflect these changes > and > > > tell > > > > >> users how to make it work with and without Maven? > > > > >> > > > > >> Ralph > > > > >> > > > > >> On Jul 17, 2014, at 8:31 AM, Matt Sicker > wrote: > > > > >> > > > > >>> Yeah because it was only used for runtime loading. Now that > > > log4j-core > > > > >>> contains an annotation processor that automatically creates your > > > plugin > > > > >>> .dat file, there's no need for the packages attribute. It's > > > effectively > > > > >>> impossible to build a plugin without using log4j-core in the > > > classpath, > > > > >> so > > > > >>> it's unnecessary to support the packages attribute. In > log4j-core, > > I > > > > had > > > > >> to > > > > >>> add some special maven-compiler-plugin settings just to get > > > log4j-core > > > > to > > > > >>> use an annotation processor from log4j-core, but other projects > > > (e.g., > > > > >> all > > > > >>> the other log4j modules) only need to depend on log4j-core to get > > > > loaded > > > > >> at > > > > >>> runtime. > > > > >>> > > > > >>> Now if you're using a custom plugin that was built against an > older > > > > >> version > > > > >>> of log4j, it might not have used the processor at the time. > > > > >>> > > > > >>> > > > > >>> On
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
gt; > > > had > > > > > >> to > > > > > >>> add some special maven-compiler-plugin settings just to get > > > > log4j-core > > > > > to > > > > > >>> use an annotation processor from log4j-core, but other projects > > > > (e.g., > > > > > >> all > > > > > >>> the other log4j modules) only need to depend on log4j-core to > get > > > > > loaded > > > > > >> at > > > > > >>> runtime. > > > > > >>> > > > > > >>> Now if you're using a custom plugin that was built against an > > older > > > > > >> version > > > > > >>> of log4j, it might not have used the processor at the time. > > > > > >>> > > > > > >>> > > > > > >>> On 17 July 2014 10:28, Remko Popma > > wrote: > > > > > >>> > > > > > >>>> Packages are ignored? > > > > > >>>> > > > > > >>>> > > > > > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < > boa...@gmail.com > > > > > > > > wrote: > > > > > >>>> > > > > > >>>>> The packages attribute is ignored right now. You have to make > > > sure > > > > > you > > > > > >>>>> build your custom plugins using log4j-core in the classpath > > > (which > > > > is > > > > > >>>> sort > > > > > >>>>> of necessary anyways). Also make sure you haven't disabled > > > > annotation > > > > > >>>>> processing (it's on by default). > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> On 17 July 2014 07:34, Jaime Sastre > > > wrote: > > > > > >>>>> > > > > > >>>>>> Yep: > > > > > >>>>>> > > > 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:remko.po...@gmail.com] > > > > > >>>>>> 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 > > > > > >>>>>> element? > > > > > >>>>>> > > > > > >>>>>> Sent from my iPhone > > > > > >>>>>> > > > > > >>>>>>> On 2014/07/17, at 19:08, Jaime Sastre < > jsas...@globalavl.com > > > > > > > > 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: > > > > > >>>>>>> > > > > > >>>>>>> > > > > >>>>>> name="RollingRandomAccessFile" immediateFlush="false" > > > > > >>>>>>> > > > > > >>>>>> fileName="c:/tmp/logs/conf-app.log" > > > > > >>>>>> > > > > > > > filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > > > > > >>>>>>> > > > > > > > >>>>>> source="persistidor" /> > > > > > >>>>>>> > > > > > >>>>>>> > > > > > >>>>>> > > > > > >>>>>>> > > > > > >>>>>> > > > > > >>>>>>> > > > > > >>>>>>> > > > > > >>>> > > > > >>>>>> max="5" /> > > > > > >>>>>>> > > > > > >>>>>>> > > > > > >>>>>>> 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: > > > log4j-user-unsubscr...@logging.apache.org > > > > > >>>>>> For additional commands, e-mail: > > > > log4j-user-h...@logging.apache.org > > > > > >>>>>> > > > > > >>>>>> > > > > > >>>>>> > > > > > > - > > > > > >>>>>> To unsubscribe, e-mail: > > > log4j-user-unsubscr...@logging.apache.org > > > > > >>>>>> For additional commands, e-mail: > > > > log4j-user-h...@logging.apache.org > > > > > >>>>>> > > > > > >>>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> -- > > > > > >>>>> Matt Sicker > > > > > >>>>> > > > > > >>>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> -- > > > > > >>> Matt Sicker > > > > > >> > > > > > >> > > > > > >> > > > - > > > > > >> To unsubscribe, e-mail: > log4j-user-unsubscr...@logging.apache.org > > > > > >> For additional commands, e-mail: > > log4j-user-h...@logging.apache.org > > > > > >> > > > > > >> > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > > > > > For additional commands, e-mail: > log4j-user-h...@logging.apache.org > > > > > > > > > > > > > > > > > > > > > > -- > > > > Matt Sicker > > > > > > > > > > > > > > > > -- > > > Matt Sicker > > > > > > > > > > > -- > > Matt Sicker > > > -- Matt Sicker
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
> > > > > >>> Yeah because it was only used for runtime loading. Now that > > > > > log4j-core > > > > > > >>> contains an annotation processor that automatically creates > > your > > > > > plugin > > > > > > >>> .dat file, there's no need for the packages attribute. It's > > > > > effectively > > > > > > >>> impossible to build a plugin without using log4j-core in the > > > > > classpath, > > > > > > >> so > > > > > > >>> it's unnecessary to support the packages attribute. In > > > log4j-core, > > > > I > > > > > > had > > > > > > >> to > > > > > > >>> add some special maven-compiler-plugin settings just to get > > > > > log4j-core > > > > > > to > > > > > > >>> use an annotation processor from log4j-core, but other > projects > > > > > (e.g., > > > > > > >> all > > > > > > >>> the other log4j modules) only need to depend on log4j-core to > > get > > > > > > loaded > > > > > > >> at > > > > > > >>> runtime. > > > > > > >>> > > > > > > >>> Now if you're using a custom plugin that was built against an > > > older > > > > > > >> version > > > > > > >>> of log4j, it might not have used the processor at the time. > > > > > > >>> > > > > > > >>> > > > > > > >>> On 17 July 2014 10:28, Remko Popma > > > wrote: > > > > > > >>> > > > > > > >>>> Packages are ignored? > > > > > > >>>> > > > > > > >>>> > > > > > > >>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < > > boa...@gmail.com > > > > > > > > > > wrote: > > > > > > >>>> > > > > > > >>>>> The packages attribute is ignored right now. You have to > make > > > > sure > > > > > > you > > > > > > >>>>> build your custom plugins using log4j-core in the classpath > > > > (which > > > > > is > > > > > > >>>> sort > > > > > > >>>>> of necessary anyways). Also make sure you haven't disabled > > > > > annotation > > > > > > >>>>> processing (it's on by default). > > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> On 17 July 2014 07:34, Jaime Sastre > > > > > wrote: > > > > > > >>>>> > > > > > > >>>>>> Yep: > > > > > > >>>>>> > > > > 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:remko.po...@gmail.com] > > > > > > >>>>>> 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 > > > > > > >>>>>> element? > > > > > > >>>>>> > > > > > > >>>>>> Sent from my iPhone > > > > > > >>>>>> > > > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
;>>> effectively >>>>>>>>> impossible to build a plugin without using log4j-core in the >>>>> classpath, >>>>>>>> so >>>>>>>>> it's unnecessary to support the packages attribute. In >>> log4j-core, >>>> I >>>>>> had >>>>>>>> to >>>>>>>>> add some special maven-compiler-plugin settings just to get >>>>> log4j-core >>>>>> to >>>>>>>>> use an annotation processor from log4j-core, but other projects >>>>> (e.g., >>>>>>>> all >>>>>>>>> the other log4j modules) only need to depend on log4j-core to >> get >>>>>> loaded >>>>>>>> at >>>>>>>>> runtime. >>>>>>>>> >>>>>>>>> Now if you're using a custom plugin that was built against an >>> older >>>>>>>> version >>>>>>>>> of log4j, it might not have used the processor at the time. >>>>>>>>> >>>>>>>>> >>>>>>>>> On 17 July 2014 10:28, Remko Popma >>> wrote: >>>>>>>>> >>>>>>>>>> Packages are ignored? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < >> boa...@gmail.com >>>> >>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> The packages attribute is ignored right now. You have to make >>>> sure >>>>>> you >>>>>>>>>>> build your custom plugins using log4j-core in the classpath >>>> (which >>>>> is >>>>>>>>>> sort >>>>>>>>>>> of necessary anyways). Also make sure you haven't disabled >>>>> annotation >>>>>>>>>>> processing (it's on by default). >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 17 July 2014 07:34, Jaime Sastre >>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> Yep: >>>>>>>>>>>> >>>> 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:remko.po...@gmail.com] >>>>>>>>>>>> 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 >>>>>>>>>>>> element? >>>>>>>>>>>> >>>>>>>>>>>> Sent from my iPhone >>>>>>>>>>>> >>>>>>>>>>>>> On 2014/07/17, at 19:08, Jaime Sastre < >> jsas...@globalavl.com >>>> >>>>>> 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: >>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> name="RollingRandomAccessFile" immediateFlush="false" >>>>>>>>>>>>> >>>>>>>>>>>> fileName="c:/tmp/logs/conf-app.log" >>>>>>>>>>>> >>>>>> >>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> >>>>>>>>>>>>> >>>> >>>>>>>>>>> source="persistidor" /> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> max="5" /> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> 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: >>>> log4j-user-unsubscr...@logging.apache.org >>>>>>>>>>>> For additional commands, e-mail: >>>>> log4j-user-h...@logging.apache.org >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>> >> - >>>>>>>>>>>> To unsubscribe, e-mail: >>>> log4j-user-unsubscr...@logging.apache.org >>>>>>>>>>>> For additional commands, e-mail: >>>>> log4j-user-h...@logging.apache.org >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Matt Sicker >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Matt Sicker >>>>>>>> >>>>>>>> >>>>>>>> >>>> - >>>>>>>> To unsubscribe, e-mail: >> log4j-user-unsubscr...@logging.apache.org >>>>>>>> For additional commands, e-mail: >>> log4j-user-h...@logging.apache.org >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>>>> >> - >>>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org >>>>>> For additional commands, e-mail: >> log4j-user-h...@logging.apache.org >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Matt Sicker >>>>> >>>> >>>> >>>> >>>> -- >>>> Matt Sicker >>>> >>> >>> >>> >>> -- >>> Matt Sicker >>> >> > > > > -- > Matt Sicker - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
> >>>>>>>> > >>>>>>>> Ralph > >>>>>>>> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker > >>> wrote: > >>>>>>>> > >>>>>>>>> Yeah because it was only used for runtime loading. Now that > >>>>> log4j-core > >>>>>>>>> contains an annotation processor that automatically creates > >> your > >>>>> plugin > >>>>>>>>> .dat file, there's no need for the packages attribute. It's > >>>>> effectively > >>>>>>>>> impossible to build a plugin without using log4j-core in the > >>>>> classpath, > >>>>>>>> so > >>>>>>>>> it's unnecessary to support the packages attribute. In > >>> log4j-core, > >>>> I > >>>>>> had > >>>>>>>> to > >>>>>>>>> add some special maven-compiler-plugin settings just to get > >>>>> log4j-core > >>>>>> to > >>>>>>>>> use an annotation processor from log4j-core, but other projects > >>>>> (e.g., > >>>>>>>> all > >>>>>>>>> the other log4j modules) only need to depend on log4j-core to > >> get > >>>>>> loaded > >>>>>>>> at > >>>>>>>>> runtime. > >>>>>>>>> > >>>>>>>>> Now if you're using a custom plugin that was built against an > >>> older > >>>>>>>> version > >>>>>>>>> of log4j, it might not have used the processor at the time. > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On 17 July 2014 10:28, Remko Popma > >>> wrote: > >>>>>>>>> > >>>>>>>>>> Packages are ignored? > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < > >> boa...@gmail.com > >>>> > >>>>>> wrote: > >>>>>>>>>> > >>>>>>>>>>> The packages attribute is ignored right now. You have to make > >>>> sure > >>>>>> you > >>>>>>>>>>> build your custom plugins using log4j-core in the classpath > >>>> (which > >>>>> is > >>>>>>>>>> sort > >>>>>>>>>>> of necessary anyways). Also make sure you haven't disabled > >>>>> annotation > >>>>>>>>>>> processing (it's on by default). > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> On 17 July 2014 07:34, Jaime Sastre > >>>> wrote: > >>>>>>>>>>> > >>>>>>>>>>>> Yep: > >>>>>>>>>>>> >>>>> 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:remko.po...@gmail.com] > >>>>>>>>>>>> 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 > >>>>>>>>>>>> element? > >>>>>>>>>>>> > >>>>>>>>>>>> Sent from my iPhone > >>>>>>>>>>>> > >>>>>>>>>>>>> On 2014/07/17, at 19:08, Jaime Sastre < > >> jsas...@globalavl.com > >>>> > >>>>>> 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: > >>>>>>>>>>>>> > >>>>>>>>>>>>> >>>>>>>>>>>> name="RollingRandomAccessFile" immediateFlush="false" > >>>>>>>>>>>>> > >>>>>>>>>>>> fileName="c:/tmp/logs/conf-app.log" > >>>>>>>>>>>> > >>>>>> > >>> filePattern="conf-logs/$${date:-MM}/app-%d{MM-dd-}-%i.log.gz"> > >>>>>>>>>>>>> > >>>> >>>>>>>>>>>> source="persistidor" /> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>> >>>>>>>>>>>> max="5" /> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> 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: > >>>> log4j-user-unsubscr...@logging.apache.org > >>>>>>>>>>>> For additional commands, e-mail: > >>>>> log4j-user-h...@logging.apache.org > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>> > >> - > >>>>>>>>>>>> To unsubscribe, e-mail: > >>>> log4j-user-unsubscr...@logging.apache.org > >>>>>>>>>>>> For additional commands, e-mail: > >>>>> log4j-user-h...@logging.apache.org > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> -- > >>>>>>>>>>> Matt Sicker > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> -- > >>>>>>>>> Matt Sicker > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>> - > >>>>>>>> To unsubscribe, e-mail: > >> log4j-user-unsubscr...@logging.apache.org > >>>>>>>> For additional commands, e-mail: > >>> log4j-user-h...@logging.apache.org > >>>>>>>> > >>>>>>>> > >>>>>> > >>>>>> > >>>>>> > >> - > >>>>>> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >>>>>> For additional commands, e-mail: > >> log4j-user-h...@logging.apache.org > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> Matt Sicker > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Matt Sicker > >>>> > >>> > >>> > >>> > >>> -- > >>> Matt Sicker > >>> > >> > > > > > > > > -- > > Matt Sicker > > > - > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- Matt Sicker
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
t; > > >>>>>>> David > > >>>>>>> > > >>>>>>> > > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > >>>>> ralph.go...@dslextreme.com > > >>>>>>> > > >>>>>>> wrote: > > >>>>>>> > > >>>>>>>> Matt, can you update the documentation to reflect these changes > > >>> and > > >>>>> tell > > >>>>>>>> users how to make it work with and without Maven? > > >>>>>>>> > > >>>>>>>> Ralph > > >>>>>>>> > > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker > > >>> wrote: > > >>>>>>>> > > >>>>>>>>> Yeah because it was only used for runtime loading. Now that > > >>>>> log4j-core > > >>>>>>>>> contains an annotation processor that automatically creates > > >> your > > >>>>> plugin > > >>>>>>>>> .dat file, there's no need for the packages attribute. It's > > >>>>> effectively > > >>>>>>>>> impossible to build a plugin without using log4j-core in the > > >>>>> classpath, > > >>>>>>>> so > > >>>>>>>>> it's unnecessary to support the packages attribute. In > > >>> log4j-core, > > >>>> I > > >>>>>> had > > >>>>>>>> to > > >>>>>>>>> add some special maven-compiler-plugin settings just to get > > >>>>> log4j-core > > >>>>>> to > > >>>>>>>>> use an annotation processor from log4j-core, but other projects > > >>>>> (e.g., > > >>>>>>>> all > > >>>>>>>>> the other log4j modules) only need to depend on log4j-core to > > >> get > > >>>>>> loaded > > >>>>>>>> at > > >>>>>>>>> runtime. > > >>>>>>>>> > > >>>>>>>>> Now if you're using a custom plugin that was built against an > > >>> older > > >>>>>>>> version > > >>>>>>>>> of log4j, it might not have used the processor at the time. > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> On 17 July 2014 10:28, Remko Popma > > >>> wrote: > > >>>>>>>>> > > >>>>>>>>>> Packages are ignored? > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < > > >> boa...@gmail.com > > >>>> > > >>>>>> wrote: > > >>>>>>>>>> > > >>>>>>>>>>> The packages attribute is ignored right now. You have to make > > >>>> sure > > >>>>>> you > > >>>>>>>>>>> build your custom plugins using log4j-core in the classpath > > >>>> (which > > >>>>> is > > >>>>>>>>>> sort > > >>>>>>>>>>> of necessary anyways). Also make sure you haven't disabled > > >>>>> annotation > > >>>>>>>>>>> processing (it's on by default). > > >>>>>>>>>>> > > >>>>>>>>>>> > > >>>>>>>>>>> On 17 July 2014 07:34, Jaime Sastre > > >>>> wrote: > > >>>>>>>>>>> > > >>>>>>>>>>>> Yep: > > >>>>>>>>>>>> > >>>>> status="WARN"> > > >>>>>>>>>>>> > > >>>>>>>>>>>> Package is right and and according to Log4j-config.xsd the > > >> xml > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
>> >> > >>>>>> Ralph >> > >>>>>> >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH >> wrote: >> > >>>>>> >> > >>>>>>> I am getting similiar errors: "error: package >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" when >> trying >> > >>> to >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. >> > >>>>>>> >> > >>>>>>> Where was this stuff moved? >> > >>>>>>> >> > >>>>>>> Thanks, >> > >>>>>>> >> > >>>>>>> David >> > >>>>>>> >> > >>>>>>> >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < >> > >>>>> ralph.go...@dslextreme.com >> > >>>>>>> >> > >>>>>>> wrote: >> > >>>>>>> >> > >>>>>>>> Matt, can you update the documentation to reflect these changes >> > >>> and >> > >>>>> tell >> > >>>>>>>> users how to make it work with and without Maven? >> > >>>>>>>> >> > >>>>>>>> Ralph >> > >>>>>>>> >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker >> > >>> wrote: >> > >>>>>>>> >> > >>>>>>>>> Yeah because it was only used for runtime loading. Now that >> > >>>>> log4j-core >> > >>>>>>>>> contains an annotation processor that automatically creates >> > >> your >> > >>>>> plugin >> > >>>>>>>>> .dat file, there's no need for the packages attribute. It's >> > >>>>> effectively >> > >>>>>>>>> impossible to build a plugin without using log4j-core in the >> > >>>>> classpath, >> > >>>>>>>> so >> > >>>>>>>>> it's unnecessary to support the packages attribute. In >> > >>> log4j-core, >> > >>>> I >> > >>>>>> had >> > >>>>>>>> to >> > >>>>>>>>> add some special maven-compiler-plugin settings just to get >> > >>>>> log4j-core >> > >>>>>> to >> > >>>>>>>>> use an annotation processor from log4j-core, but other >> projects >> > >>>>> (e.g., >> > >>>>>>>> all >> > >>>>>>>>> the other log4j modules) only need to depend on log4j-core to >> > >> get >> > >>>>>> loaded >> > >>>>>>>> at >> > >>>>>>>>> runtime. >> > >>>>>>>>> >> > >>>>>>>>> Now if you're using a custom plugin that was built against an >> > >>> older >> > >>>>>>>> version >> > >>>>>>>>> of log4j, it might not have used the processor at the time. >> > >>>>>>>>> >> > >>>>>>>>> >> > >>>>>>>>> On 17 July 2014 10:28, Remko Popma >> > >>> wrote: >> > >>>>>>>>> >> > >>>>>>>>>> Packages are ignored? >> > >>>>>>>>>> >> > >>>>>>>>>> >> > >>>>>>>>>> On Fri, Jul 18, 2014 at 12:21 AM, Matt Sicker < >> > >> boa...@gmail.com >> > >>>> >> > >>>>>> wrote: >> > >>>>>>>>>> >> > >>>>>>>>>>> The packages attribute is ignored right now. You have to >> make >> > >>>> sure >> > >>>>>> you >> > >>>>>>>>>>> build your custom plugins using log4j-core in the classpath >> > >>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
;> But if you get the wrong versión of javac it wont'be noticed > >> > >>>>> > >> > >>>>> > >> > >>>>> Sent via Xiaomi > >> > >>>>> > >> > >>>>> On Matt Sicker , Jul 17, 2014 9:20 PM wrote: > >> > >>>>> I'll add some documentation about it. However, the annotation > >> > >> processor > >> > >>>>> would work with Ant or even just Make. It's part of javac. > >> > >>>>> > >> > >>>>> > >> > >>>>> On 17 July 2014 13:48, Ralph Goers > >> > >> wrote: > >> > >>>>> > >> > >>>>>> Try looking in the util package. > >> > >>>>>> > >> > >>>>>> Ralph > >> > >>>>>> > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH > >> wrote: > >> > >>>>>> > >> > >>>>>>> I am getting similiar errors: "error: package > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" when > >> trying > >> > >>> to > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > >> > >>>>>>> > >> > >>>>>>> Where was this stuff moved? > >> > >>>>>>> > >> > >>>>>>> Thanks, > >> > >>>>>>> > >> > >>>>>>> David > >> > >>>>>>> > >> > >>>>>>> > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > >> > >>>>> ralph.go...@dslextreme.com > >> > >>>>>>> > >> > >>>>>>> wrote: > >> > >>>>>>> > >> > >>>>>>>> Matt, can you update the documentation to reflect these > changes > >> > >>> and > >> > >>>>> tell > >> > >>>>>>>> users how to make it work with and without Maven? > >> > >>>>>>>> > >> > >>>>>>>> Ralph > >> > >>>>>>>> > >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker > >> > >>> wrote: > >> > >>>>>>>> > >> > >>>>>>>>> Yeah because it was only used for runtime loading. Now that > >> > >>>>> log4j-core > >> > >>>>>>>>> contains an annotation processor that automatically creates > >> > >> your > >> > >>>>> plugin > >> > >>>>>>>>> .dat file, there's no need for the packages attribute. It's > >> > >>>>> effectively > >> > >>>>>>>>> impossible to build a plugin without using log4j-core in the > >> > >>>>> classpath, > >> > >>>>>>>> so > >> > >>>>>>>>> it's unnecessary to support the packages attribute. In > >> > >>> log4j-core, > >> > >>>> I > >> > >>>>>> had > >> > >>>>>>>> to > >> > >>>>>>>>> add some special maven-compiler-plugin settings just to get > >> > >>>>> log4j-core > >> > >>>>>> to > >> > >>>>>>>>> use an annotation processor from log4j-core, but other > >> projects > >> > >>>>> (e.g., > >> > >>>>>>>> all > >> > >>>>>>>>> the other log4j modules) only need to depend on log4j-core > to > >> > >> get > >> > >>>>>> loaded > >> > >>>>>>>> at > >> > >>>>>>>>> runtime. > >> > >>>>>>>>> > >> > >>>>>>>>> Now if you're using a custom plugin that was built against > an > >> > >>
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
t; >>> > > >> > >>>> Sorry, I thought 1.5 could compile but services stuff was in > 1.6, > > >> > never > > >> > >>>> mind > > >> > >>>> > > >> > >>>> > > >> > >>>> Sent via Xiaomi > > >> > >>>> > > >> > >>>> On Matt Sicker , Jul 17, 2014 11:50 PM > wrote: > > >> > >>>> What do you mean? You can't compile anything using log4j-core > in > > a > > >> > >>> version > > >> > >>>> of javac older than 1.6. > > >> > >>>> > > >> > >>>> > > >> > >>>> On 17 July 2014 14:40, Jaime Sastre > > wrote: > > >> > >>>> > > >> > >>>>> But if you get the wrong versión of javac it wont'be noticed > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> Sent via Xiaomi > > >> > >>>>> > > >> > >>>>> On Matt Sicker , Jul 17, 2014 9:20 PM > wrote: > > >> > >>>>> I'll add some documentation about it. However, the annotation > > >> > >> processor > > >> > >>>>> would work with Ant or even just Make. It's part of javac. > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> On 17 July 2014 13:48, Ralph Goers < > ralph.go...@dslextreme.com> > > >> > >> wrote: > > >> > >>>>> > > >> > >>>>>> Try looking in the util package. > > >> > >>>>>> > > >> > >>>>>> Ralph > > >> > >>>>>> > > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH > > >> wrote: > > >> > >>>>>> > > >> > >>>>>>> I am getting similiar errors: "error: package > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" when > > >> trying > > >> > >>> to > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > > >> > >>>>>>> > > >> > >>>>>>> Where was this stuff moved? > > >> > >>>>>>> > > >> > >>>>>>> Thanks, > > >> > >>>>>>> > > >> > >>>>>>> David > > >> > >>>>>>> > > >> > >>>>>>> > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > >> > >>>>> ralph.go...@dslextreme.com > > >> > >>>>>>> > > >> > >>>>>>> wrote: > > >> > >>>>>>> > > >> > >>>>>>>> Matt, can you update the documentation to reflect these > > changes > > >> > >>> and > > >> > >>>>> tell > > >> > >>>>>>>> users how to make it work with and without Maven? > > >> > >>>>>>>> > > >> > >>>>>>>> Ralph > > >> > >>>>>>>> > > >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker > > > >> > >>> wrote: > > >> > >>>>>>>> > > >> > >>>>>>>>> Yeah because it was only used for runtime loading. Now > that > > >> > >>>>> log4j-core > > >> > >>>>>>>>> contains an annotation processor that automatically > creates > > >> > >> your > > >> > >>>>> plugin > > >> > >>>>>>>>> .dat file, there's no need for the packages attribute. > It's > > >> > >>>>> effectively > > >> > >>>>>>>>> impossible to build a plugin without using log4j-core in > the > > >> > >>>>> classpath, > > >> &g
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
x27;s "Export Jar" function, will this > > jar > > > >> file > > > >> > >> include the plugin metadata file? (If not we should warn users > > > about > > > >> > this.) > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> > > > >> > >> On Fri, Jul 18, 2014 at 10:38 AM, Matt Sicker < > boa...@gmail.com> > > > >> wrote: > > > >> > >> > > > >> > >>> Alright, I've updated the manual to explain the current plugin > > > >> process. > > > >> > >>> > > > >> > >>> > > > >> > >>> On 17 July 2014 17:17, Jaime Sastre > > > wrote: > > > >> > >>> > > > >> > >>>> Sorry, I thought 1.5 could compile but services stuff was in > > 1.6, > > > >> > never > > > >> > >>>> mind > > > >> > >>>> > > > >> > >>>> > > > >> > >>>> Sent via Xiaomi > > > >> > >>>> > > > >> > >>>> On Matt Sicker , Jul 17, 2014 11:50 PM > > wrote: > > > >> > >>>> What do you mean? You can't compile anything using log4j-core > > in > > > a > > > >> > >>> version > > > >> > >>>> of javac older than 1.6. > > > >> > >>>> > > > >> > >>>> > > > >> > >>>> On 17 July 2014 14:40, Jaime Sastre > > > wrote: > > > >> > >>>> > > > >> > >>>>> But if you get the wrong versión of javac it wont'be noticed > > > >> > >>>>> > > > >> > >>>>> > > > >> > >>>>> Sent via Xiaomi > > > >> > >>>>> > > > >> > >>>>> On Matt Sicker , Jul 17, 2014 9:20 PM > > wrote: > > > >> > >>>>> I'll add some documentation about it. However, the > annotation > > > >> > >> processor > > > >> > >>>>> would work with Ant or even just Make. It's part of javac. > > > >> > >>>>> > > > >> > >>>>> > > > >> > >>>>> On 17 July 2014 13:48, Ralph Goers < > > ralph.go...@dslextreme.com> > > > >> > >> wrote: > > > >> > >>>>> > > > >> > >>>>>> Try looking in the util package. > > > >> > >>>>>> > > > >> > >>>>>> Ralph > > > >> > >>>>>> > > > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH > > > >> wrote: > > > >> > >>>>>> > > > >> > >>>>>>> I am getting similiar errors: "error: package > > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" when > > > >> trying > > > >> > >>> to > > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > > > >> > >>>>>>> > > > >> > >>>>>>> Where was this stuff moved? > > > >> > >>>>>>> > > > >> > >>>>>>> Thanks, > > > >> > >>>>>>> > > > >> > >>>>>>> David > > > >> > >>>>>>> > > > >> > >>>>>>> > > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > > >> > >>>>> ralph.go...@dslextreme.com > > > >> > >>>>>>> > > > >> > >>>>>>> wrote: > > > >> > >>>>>>> > > > >> > >>>>>>>> Matt, can you update the documentation to reflect these > > > changes > > > >> > >>> and > > > >> > >>>>> tell > > > >&g
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
t;>>> > > > > >> > >>>>>>> I am getting similiar errors: "error: package > > > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" > when > > > > >> trying > > > > >> > >>> to > > > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > > > > >> > >>>>>>> > > > > >> > >>>>>>> Where was this stuff moved? > > > > >> > >>>>>>> > > > > >> > >>>>>>> Thanks, > > > > >> > >>>>>>> > > > > >> > >>>>>>> David > > > > >> > >>>>>>> > > > > >> > >>>>>>> > > > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > > > >> > >>>>> ralph.go...@dslextreme.com > > > > >> > >>>>>>> > > > > >> > >>>>>>> wrote: > > > > >> > >>>>>>> > > > > >> > >>>>>>>> Matt, can you update the documentation to reflect these > > > > changes > > > > >> > >>> and > > > > >> > >>>>> tell > > > > >> > >>>>>>>> users how to make it work with and without Maven? > > > > >> > >>>>>>>> > > > > >> > >>>>>>>> Ralph > > > > >> > >>>>>>>> > > > > >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker < > > boa...@gmail.com > > > > > > > > >> > >>> wrote: > > > > >> > >>>>>>>> > > > > >> > >>>>>>>>> Yeah because it was only used for runtime loading. Now > > > that > > > > >> > >>>>> log4j-core > > > > >> > >>>>>>>>> contains an annotation processor that automatically > > > creates > > > > >> > >> your > > > > >> > >>>>> plugin > > > > >> > >>>>>>>>> .dat file, there's no need for the packages attribute. > > > It's > > > > >> > >>>>> effectively > > > > >> > >>>>>>>>> impossible to build a plugin without using log4j-core > in > > > the > > > > >> > >>>>> classpath, > > > > >> > >>>>>>>> so > > > > >> > >>>>>>>>> it's unnecessary to support the packages attribute. In > > > > >> > >>> log4j-core, > > > > >> > >>>> I > > > > >> > >>>>>> had > > > > >> > >>>>>>>> to > > > > >> > >>>>>>>>> add some special maven-compiler-plugin settings just > to > > > get > > > > >> > >>>>> log4j-core > > > > >> > >>>>>> to > > > > >> > >>>>>>>>> use an annotation processor from log4j-core, but other > > > > >> projects > > > > >> > >>>>> (e.g., > > > > >> > >>>>>>>> all > > > > >> > >>>>>>>>> the other log4j modules) only need to depend on > > log4j-core > > > > to > > > > >> > >> get > > > > >> > >>>>>> loaded > > > > >> > >>>>>>>> at > > > > >> > >>>>>>>>> runtime. > > > > >> > >>>>>>>>> > > > > >> > >>>>>>>>> Now if you're using a custom plugin that was built > > against > > > > an > > > > >> > >>> older > > > > >> > >>>>>>>> version > > &
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
t; > annotation >> > > > >> > >> processor >> > > > >> > >>>>> would work with Ant or even just Make. It's part of >> javac. >> > > > >> > >>>>> >> > > > >> > >>>>> >> > > > >> > >>>>> On 17 July 2014 13:48, Ralph Goers < >> > > ralph.go...@dslextreme.com> >> > > > >> > >> wrote: >> > > > >> > >>>>> >> > > > >> > >>>>>> Try looking in the util package. >> > > > >> > >>>>>> >> > > > >> > >>>>>> Ralph >> > > > >> > >>>>>> >> > > > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH < >> dk...@ezakus.com> >> > > > >> wrote: >> > > > >> > >>>>>> >> > > > >> > >>>>>>> I am getting similiar errors: "error: package >> > > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" >> when >> > > > >> trying >> > > > >> > >>> to >> > > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> Where was this stuff moved? >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> Thanks, >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> David >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < >> > > > >> > >>>>> ralph.go...@dslextreme.com >> > > > >> > >>>>>>> >> > > > >> > >>>>>>> wrote: >> > > > >> > >>>>>>> >> > > > >> > >>>>>>>> Matt, can you update the documentation to reflect >> these >> > > > changes >> > > > >> > >>> and >> > > > >> > >>>>> tell >> > > > >> > >>>>>>>> users how to make it work with and without Maven? >> > > > >> > >>>>>>>> >> > > > >> > >>>>>>>> Ralph >> > > > >> > >>>>>>>> >> > > > >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker < >> > boa...@gmail.com >> > > > >> > > > >> > >>> wrote: >> > > > >> > >>>>>>>> >> > > > >> > >>>>>>>>> Yeah because it was only used for runtime loading. >> Now >> > > that >> > > > >> > >>>>> log4j-core >> > > > >> > >>>>>>>>> contains an annotation processor that automatically >> > > creates >> > > > >> > >> your >> > > > >> > >>>>> plugin >> > > > >> > >>>>>>>>> .dat file, there's no need for the packages >> attribute. >> > > It's >> > > > >> > >>>>> effectively >> > > > >> > >>>>>>>>> impossible to build a plugin without using >> log4j-core in >> > > the >> > > > >> > >>>>> classpath, >> > > > >> > >>>>>>>> so >> > > > >> > >>>>>>>>> it's unnecessary to support the packages attribute. >> In >> > > > >> > >>> log4j-core, >> > > > >> > >>>> I >> > > > >> > >>>>>> had >> > > > >> > >>>>>&g
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
> >>>>> On Matt Sicker , Jul 17, 2014 9:20 PM > > > > wrote: > > > > > >> > >>>>> I'll add some documentation about it. However, the > > > annotation > > > > > >> > >> processor > > > > > >> > >>>>> would work with Ant or even just Make. It's part of > javac. > > > > > >> > >>>>> > > > > > >> > >>>>> > > > > > >> > >>>>> On 17 July 2014 13:48, Ralph Goers < > > > > ralph.go...@dslextreme.com> > > > > > >> > >> wrote: > > > > > >> > >>>>> > > > > > >> > >>>>>> Try looking in the util package. > > > > > >> > >>>>>> > > > > > >> > >>>>>> Ralph > > > > > >> > >>>>>> > > > > > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH < > > dk...@ezakus.com> > > > > > >> wrote: > > > > > >> > >>>>>> > > > > > >> > >>>>>>> I am getting similiar errors: "error: package > > > > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not exist" > > when > > > > > >> trying > > > > > >> > >>> to > > > > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> Where was this stuff moved? > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> Thanks, > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> David > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > > > > >> > >>>>> ralph.go...@dslextreme.com > > > > > >> > >>>>>>> > > > > > >> > >>>>>>> wrote: > > > > > >> > >>>>>>> > > > > > >> > >>>>>>>> Matt, can you update the documentation to reflect > these > > > > > changes > > > > > >> > >>> and > > > > > >> > >>>>> tell > > > > > >> > >>>>>>>> users how to make it work with and without Maven? > > > > > >> > >>>>>>>> > > > > > >> > >>>>>>>> Ralph > > > > > >> > >>>>>>>> > > > > > >> > >>>>>>>> On Jul 17, 2014, at 8:31 AM, Matt Sicker < > > > boa...@gmail.com > > > > > > > > > > >> > >>> wrote: > > > > > >> > >>>>>>>> > > > > > >> > >>>>>>>>> Yeah because it was only used for runtime loading. > Now > > > > that > > > > > >> > >>>>> log4j-core > > > > > >> > >>>>>>>>> contains an annotation processor that automatically > > > > creates > > > > > >> > >> your > > > > > >> > >>>>> plugin > > > > > >> > >>>>>>>>> .dat file, there's no need for the packages > attribute. > > > > It's > > > > > >> > >>>>> effectively > > > > > >> > >>>>>>>>> impossible to build a plugin without using > log4j-core > > in > > > > the > > > > > >> > >>>>> classpath, > > > > > >> > >>>>>>>> so > > > > > >> > >>>>>>>>> it's unnecessary to support the packages attribute. > In > > > >
Re: Cannot set up my custom layout in 2.0 (worked in rc1)
> PM > > > > > wrote: > > > > > > >> > >>>> What do you mean? You can't compile anything using > > > log4j-core > > > > > in > > > > > > a > > > > > > >> > >>> version > > > > > > >> > >>>> of javac older than 1.6. > > > > > > >> > >>>> > > > > > > >> > >>>> > > > > > > >> > >>>> On 17 July 2014 14:40, Jaime Sastre < > > jsas...@globalavl.com > > > > > > > > > > wrote: > > > > > > >> > >>>> > > > > > > >> > >>>>> But if you get the wrong versión of javac it wont'be > > > noticed > > > > > > >> > >>>>> > > > > > > >> > >>>>> > > > > > > >> > >>>>> Sent via Xiaomi > > > > > > >> > >>>>> > > > > > > >> > >>>>> On Matt Sicker , Jul 17, 2014 9:20 > PM > > > > > wrote: > > > > > > >> > >>>>> I'll add some documentation about it. However, the > > > > annotation > > > > > > >> > >> processor > > > > > > >> > >>>>> would work with Ant or even just Make. It's part of > > javac. > > > > > > >> > >>>>> > > > > > > >> > >>>>> > > > > > > >> > >>>>> On 17 July 2014 13:48, Ralph Goers < > > > > > ralph.go...@dslextreme.com> > > > > > > >> > >> wrote: > > > > > > >> > >>>>> > > > > > > >> > >>>>>> Try looking in the util package. > > > > > > >> > >>>>>> > > > > > > >> > >>>>>> Ralph > > > > > > >> > >>>>>> > > > > > > >> > >>>>>> On Jul 17, 2014, at 9:53 AM, David KOCH < > > > dk...@ezakus.com> > > > > > > >> wrote: > > > > > > >> > >>>>>> > > > > > > >> > >>>>>>> I am getting similiar errors: "error: package > > > > > > >> > >>>>>>> org.apache.logging.log4j.core.helpers does not > exist" > > > when > > > > > > >> trying > > > > > > >> > >>> to > > > > > > >> > >>>>>>> compile a custom appender that worked with 2.0-rc1. > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> Where was this stuff moved? > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> Thanks, > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> David > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> On Thu, Jul 17, 2014 at 6:46 PM, Ralph Goers < > > > > > > >> > >>>>> ralph.go...@dslextreme.com > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>> wrote: > > > > > > >> > >>>>>>> > > > > > > >> > >>>>>>>> Matt, can you update the documentation to reflect > > these > > > > > > changes > > > > > > >> > >>> and > > > > > > >> > >>>>> tell > > > > > > >> > >>>>>>>> users how to make it work with and without Maven? > > > > > > >> > >>>>>>>> > > > > > > >> > >>>>>>>> Ralph > > > > > > >> > >>>>>>>> > > > > > > >> > >>>>>>>&g