Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2509

Allow a JDBC Appender to truncate strings to match a table's metadata column length limit

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.11.2
    • Component/s: Appenders
    • Labels:
      None

      Description

      Allow a JDBC Appender to truncate strings to match a table's metadata column length limit.

      Some databases like MySQL can be configured to cause SQL INSERT statements to fail when data for a column exceeds the length of a column definition.

      In the case of MySQL 8, this is the default configuration, and asking a DB admin to change this to accommodate an application is not reasonable.

      This feature would add a new attribute on the JdbcAppender called truncateStrings which would do so. This would be set to true by default for a smooth initial impression.

       

        Attachments

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: