You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "simontankersley (via GitHub)" <gi...@apache.org> on 2023/10/30 17:11:12 UTC

[I] notEmpty still outputs text when variable is empty (logging-log4j2)

simontankersley opened a new issue, #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922

   ## Description
   
   As per the documentation on https://logging.apache.org/log4j/2.x/manual/layouts.html, log4j2 has a *Conversion Pattern* called `notEmpty` that:
   
   > Outputs the result of evaluating the pattern if and only if all variables in the pattern are not empty.
   
   In version 2.20.0 of log4j2, this works as expected but in version 2.21.0 and above (at time of creating the issue) it doesn't.
   
   Please see Reproduction section for more details.
   
   ## Configuration
   
   **Version:** 2.21.0 and 2.21.1
   
   **Operating system:** Mac OS 14.0
   
   **JDK:** openjdk 17.0.5
   
   ## Logs
   
   Please see Reproduction section for details.
   
   ## Reproduction
   
   Please see https://github.com/simontankersley/log4j_notEmpty_bug#readme
   


-- 
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: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy closed issue #1922: notEmpty still outputs text when variable is empty
URL: https://github.com/apache/logging-log4j2/issues/1922


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "simontankersley (via GitHub)" <gi...@apache.org>.
simontankersley commented on issue #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922#issuecomment-1789246904

   > Would you mind giving 2.22.0-SNAPSHOT a try once [the associated CI run](https://github.com/apache/logging-log4j2/actions/runs/6717848523) successfully finishes, please?
   I can confirm, things work as expected again in 2.22.0-SNAPSHOT. Thanks for turning this around so quickly!


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "class101 (via GitHub)" <gi...@apache.org>.
class101 commented on issue #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922#issuecomment-1794694925

   @vy I also confirm `2.22.0-SNAPSHOT` fixes the regression I also duplicated in #1946 
   
   Sorry for the duplicate and thanks again guys for the fast intervention :)


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "linhartJ (via GitHub)" <gi...@apache.org>.
linhartJ commented on issue #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922#issuecomment-1786876508

   Having the same issue.


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on issue #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922#issuecomment-1788650192

   @simontankersley, @linhartJ, problem should be fixed by dd4a88ac2e744440565e5903a9a397f5f82cacfe. Would you mind giving `2.22.0-SNAPSHOT` a try once [the associated CI run](/apache/logging-log4j2/actions/runs/6717848523) successfully finishes, please? (See [this section of the manual](https://logging.apache.org/log4j/2.x/maven-artifacts.html#snapshot-builds) on how to add snapshot repositories.)
   
   @simontankersley, thanks so much again for the report and for taking time to create a reproduction. :heart_eyes: :bow: Feel free to comment/re-open the issue if the fix doesn't work for you.


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] notEmpty still outputs text when variable is empty (logging-log4j2)

Posted by "vy (via GitHub)" <gi...@apache.org>.
vy commented on issue #1922:
URL: https://github.com/apache/logging-log4j2/issues/1922#issuecomment-1786722931

   @simontankersley, thanks for the report, I will check it out.


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org