[logback-dev] [JIRA] (LOGBACK-1497) Empty default variable value results in _IS_UNDEFINED

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Jan 21 15:03:00 CET 2020

Neeme Praks created LOGBACK-1497:

             Summary: Empty default variable value results in _IS_UNDEFINED
                 Key: LOGBACK-1497
                 URL: https://jira.qos.ch/browse/LOGBACK-1497
             Project: logback
          Issue Type: Bug
          Components: logback-core
    Affects Versions: 1.2.3
            Reporter: Neeme Praks
            Assignee: Logback dev list
            Priority: Minor

Config file:

<?xml version="1.0" encoding="UTF-8"?>

  <appender name="HUMAN" class="ch.qos.logback.core.FileAppender">
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %level %logger{35} - %msg ${log.pattern.suffix:-}%n</Pattern>

  <root level="INFO">
    <appender-ref ref="HUMAN" />


The variable ${log.pattern.suffix} is not defined.

*Observed behaviour*: ${log.pattern.suffix:-} is replaced with "log.pattern.suffix_IS_UNDEFINED"

*Expected behaviour*: ${log.pattern.suffix:-} should be replaced with empty string (as there is empty string after ":-".

This message was sent by Atlassian JIRA

More information about the logback-dev mailing list