Repository: logging-log4j2 Updated Branches: refs/heads/master 24a7f432f -> f78ebc95a
Add articles, fix typos identified by Remko Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f78ebc95 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f78ebc95 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f78ebc95 Branch: refs/heads/master Commit: f78ebc95a5592c82918f8f17eec7b29c4fd5ef35 Parents: 24a7f43 Author: Ralph Goers <[email protected]> Authored: Mon Sep 7 21:10:39 2015 -0700 Committer: Ralph Goers <[email protected]> Committed: Mon Sep 7 21:10:39 2015 -0700 ---------------------------------------------------------------------- src/site/xdoc/articles.xml | 16 ++++++++++++++++ src/site/xdoc/manual/customconfig.xml | 12 ++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f78ebc95/src/site/xdoc/articles.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/articles.xml b/src/site/xdoc/articles.xml index 6b5d432..4e24361 100644 --- a/src/site/xdoc/articles.xml +++ b/src/site/xdoc/articles.xml @@ -31,6 +31,18 @@ <subsection name="English"> <ul> <li> + <a href="http://www.infoq.com/news/2015/09/interview-log4j-pmc">The Transition to a New Log4j: a Q&A with Log4j's Project Management Committee</a> + (September 8, 2015) + </li> + <li> + <a href="http://www.infoq.com/news/2015/08/log4j-version-1-reaches-eol">Log4j Version 1 Reaches End of Life</a> + (August 26, 2015) + </li> + <li> + <a href="https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces">Apache Logging Services Project Announces Log4j 1 End-Of-Life; Recommends Upgrade to Log4j 2</a> + (August 6, 2015) + </li> + <li> <a href="https://www.innoq.com/en/blog/per-request-debugging-with-log4j2/">Per request debugging with Log4j 2 filters</a> (May 8, 2015) </li> @@ -41,6 +53,10 @@ (March 16, 2015) </li> <li> + <a href="http://blogs.mulesoft.com/dev/mule-dev/mule-3-6-asynchronous-logging/">Disrupting your Asynchronous Loggers</a> + (March 5, 2015) + </li> + <li> <a href="http://andrew-flower.com/blog/Create_Custom_Log4j_Plugins">Extending Log4j2 - Creating Custom Log4j2 Plugins</a> (February 20, 2015) </li> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f78ebc95/src/site/xdoc/manual/customconfig.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/customconfig.xml b/src/site/xdoc/manual/customconfig.xml index 76fb13d..453c167 100644 --- a/src/site/xdoc/manual/customconfig.xml +++ b/src/site/xdoc/manual/customconfig.xml @@ -35,7 +35,7 @@ The easiest way to create a custom Configuration is to extend one of the standard Configuration classes (XMLConfiguration, JSONConfiguration) and then create a new ConfigurationFactory for the extended class. After the standard configuration completes the custom configuration can be added to it. - </p>> + </p> <p> The example below shows how to extend XMLConfiguration to manually add an Appender and a LoggerConfig to the configuration. @@ -107,9 +107,9 @@ public class CustomConfigurationFactory extends ConfigurationFactory { AppenderComponentBuilder appenderBuilder = builder.newAppender("Stdout", "CONSOLE"). addAttribute("target", ConsoleAppender.Target.SYSTEM_OUT); appenderBuilder.add(builder.newLayout("PatternLayout"). - addAttribute("pattern", "%d [%t] %-5level: %msg%n%throwable")); + addAttribute("pattern", "%d [%t] %-5level: %msg%n%throwable")); appenderBuilder.add(builder.newFilter("MarkerFilter", Filter.Result.DENY, - Filter.Result.NEUTRAL).addAttribute("marker", "FLOW")); + Filter.Result.NEUTRAL).addAttribute("marker", "FLOW")); builder.add(appenderBuilder); builder.add(builder.newLogger("org.apache.logging.log4j", Level.DEBUG). add(builder.newAppenderRef("Stdout")). @@ -145,9 +145,9 @@ public class CustomConfigurationFactory extends ConfigurationFactory { up the Log4j configuration. </p> <p> - The ConfigurationBuilder is aware of the base components that can be cofigured such as Loggers, Appenders, - Filter, Properties, etc. However, it does know what components can be configured on specific components - such as the RollingFileAppender vs the RoutingAppender. As an example, when creating an appender + The ConfigurationBuilder is aware of the base components that can be configured such as Loggers, Appenders, + Filter, Properties, etc. However, it does not know what components can be configured on specific components + such as the RollingFileAppender vs. the RoutingAppender. As an example, when creating an appender builder.newFilter() can be called to create a Filter and then the add method can be called on the AppenderComponentBuilder to add the Filter to the Appender. However, the configuration builder doesn't know anything about triggering policies. For these, builder.newComponent() must be used.
