You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.atInfo().setMessage("This is a test for keyValue")
.addKeyValue("string", "stringValue")
.addKeyValue("double", 10.1)
.addKeyValue("long", 10)
.addKeyValue("boolean", true)
.log();
and then configure logback appender 1.0 with captureKeyValuePairAttributes=true
Expected behavior
Expect attributes of key boolean, double, long, and string as below
{boolean=true, double=10.1, long=10, string="stringValue", ...}
Actual behavior
while attributes of key boolean, double, long, and string as below
{boolean="true", double="10.1", long="10", string="stringValue", ...}
Describe the bug
Current logback-appender-1.0's captureKeyValuePairAttributes implementation lost value type when converting KeyValuePair to attributes
Steps to reproduce
when logging as below using slf4j
and then configure logback appender 1.0 with
captureKeyValuePairAttributes=true
Expected behavior
Expect attributes of key
boolean
,double
, long, andstring
as below{boolean=true, double=10.1, long=10, string="stringValue", ...}
Actual behavior
while attributes of key
boolean
,double
, long, andstring
as below{boolean="true", double="10.1", long="10", string="stringValue", ...}
Javaagent or library instrumentation version
2ee4ee1
Environment
JDK:
OS:
Additional context
No response
The text was updated successfully, but these errors were encountered: