You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2023/06/28 05:38:15 UTC
[logging-log4cxx] branch remove_TTCCLayout_references created (now 4d5218d7)
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a change to branch remove_TTCCLayout_references
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
at 4d5218d7 Remove from documentation all references to the (no longer supported) TTCCLayout
This branch includes the following new commits:
new 4d5218d7 Remove from documentation all references to the (no longer supported) TTCCLayout
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[logging-log4cxx] 01/01: Remove from documentation all references to the (no longer supported) TTCCLayout
Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch remove_TTCCLayout_references
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit 4d5218d70cf41c26d87da8489767ff13ac99739b
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Wed Jun 28 15:28:52 2023 +1000
Remove from documentation all references to the (no longer supported) TTCCLayout
---
src/main/include/log4cxx/layout.h | 5 ++---
src/main/include/log4cxx/propertyconfigurator.h | 25 +++++++++++++------------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/main/include/log4cxx/layout.h b/src/main/include/log4cxx/layout.h
index 621b17db..1025caf2 100644
--- a/src/main/include/log4cxx/layout.h
+++ b/src/main/include/log4cxx/layout.h
@@ -71,9 +71,8 @@ class LOG4CXX_EXPORT Layout :
<code>false</code>. Otherwise, if the layout ignores throwable
object, then the layout should return <code>true</code>.
- <p>The SimpleLayout, TTCCLayout,
- PatternLayout all return <code>true</code>.
- The {@link xml::XMLLayout XMLLayout} returns <code>false</code>.
+ <p>The SimpleLayout, FMTLayout and PatternLayout return <code>true</code>.
+ The other layouts return <code>false</code>.
*/
virtual bool ignoresThrowable() const = 0;
};
diff --git a/src/main/include/log4cxx/propertyconfigurator.h b/src/main/include/log4cxx/propertyconfigurator.h
index 675a69d1..028f3e6d 100644
--- a/src/main/include/log4cxx/propertyconfigurator.h
+++ b/src/main/include/log4cxx/propertyconfigurator.h
@@ -229,27 +229,28 @@ class LOG4CXX_EXPORT PropertyConfigurator :
log4j.appender.A1.SyslogHost=www.abc.net
# A1's layout is a PatternLayout, using the conversion pattern
- # <b>%r %-5p %c{2} %M.%L %x - %m\n</b>. Thus, the log output will
- # include # the relative time since the start of the application in
- # milliseconds, followed by the level of the log request,
- # followed by the two rightmost components of the logger name,
- # followed by the callers method name, followed by the line number,
+ # "%r %-5p %c{2} %M.%L %x - %m%n". Thus, the log output will include
+ # the relative time since the start of the application in milliseconds, followed by
+ # the level of the log request, followed by
+ # the two rightmost components of the logger name, followed by
+ # the callers method name, followed by the line number,
# the nested disgnostic context and finally the message itself.
# Refer to the documentation of PatternLayout for further information
# on the syntax of the ConversionPattern key.
log4j.appender.A1.layout=PatternLayout
- log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n
+ log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %%c{2} %%M.%%L %%x - %%m%%n
# Set options for appender named "A2"
- # A2 should be a RollingFileAppender, with maximum file size of 10 MB
- # using at most one backup file. A2's layout is TTCC, using the
- # ISO8061 date format with context printing enabled.
+ # A2 should be a RollingFileAppender,
+ # with maximum file size of 10 MB using at most one backup file.
+ # A2's layout is: date and time (using the ISO8061 date format),
+ # thread, level, logger name, nested diagnostic context
+ # and finally the message itself.
log4j.appender.A2=RollingFileAppender
log4j.appender.A2.MaxFileSize=10MB
log4j.appender.A2.MaxBackupIndex=1
- log4j.appender.A2.layout=TTCCLayout
- log4j.appender.A2.layout.ContextPrinting=enabled
- log4j.appender.A2.layout.DateFormat=ISO8601
+ log4j.appender.A2.layout=PatternLayout
+ log4j.appender.A2.layout.ConversionPattern=%%d [%%t] %%p %%c %%x - %%m%%n
# Root logger set to DEBUG using the A2 appender defined above.
log4j.rootLogger=DEBUG, A2