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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 3.0.0, 2.16.0
    • Appenders
    • 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

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: