rm5248 commented on PR #204:
URL: https://github.com/apache/logging-log4cxx/pull/204#issuecomment-1518446104

   If we want to be fancy we could do something like what log4j2 does as well, 
and increment the column number whenever we see the param, so the XML would 
instead look like:
   ```
   <param name="sql" value="INSERT INTO 
[SomeDatabaseName].[SomeUserName].[SomeTableName] 
([Thread],[LogName],[LogTime],[LogLevel],[FileName],[FileLine],[Message]) 
VALUES (?, ?, ?, ?, ?, ?, ?)" />
   <param name="ColumnMapping" value="%t"/>
   <param name="ColumnMapping" value="%c"/>
   <param name="ColumnMapping" value="%d{dd MMM yyyy HH:mm:ss.SSS}"/>
   <param name="ColumnMapping" value="%p"/>
   <param name="ColumnMapping" value="%f"/>
   <param name="ColumnMapping" value="%L"/>
   <param name="ColumnMapping" value="%m"/>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to