This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 156931e8 Document the option on the message specifier of the 
PatternLayout to duplicate any quote character in the message.
156931e8 is described below

commit 156931e84ae506b0f66e25f8fa9ad7db219cea97
Author: Stephen Webb <swebb2...@gmail.com>
AuthorDate: Sat Apr 22 11:32:09 2023 +1000

    Document the option on the message specifier of the PatternLayout to 
duplicate any quote character in the message.
---
 src/main/include/log4cxx/patternlayout.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/include/log4cxx/patternlayout.h 
b/src/main/include/log4cxx/patternlayout.h
index 41e09819..3ae3805b 100644
--- a/src/main/include/log4cxx/patternlayout.h
+++ b/src/main/include/log4cxx/patternlayout.h
@@ -159,8 +159,10 @@ LOG4CXX_LIST_DEF(FormattingInfoList, 
log4cxx::pattern::FormattingInfoPtr);
  *  <tr>
  *      <td align="center"><strong>m</strong></td>
  *      <td>
- *          Used to output the application supplied message associated with 
the logging
- *          event.
+ *          Used to output the application supplied message associated with 
the logging event.
+ *          To output in a quoted context, add set of braces containing the 
quote character.
+ *          Any quote character in the message is augmented with a second 
quote character.
+ *          For example, use %m{'} in an SQL insert statement.
  *      </td>
  *  </tr>
  *  <tr>

Reply via email to