Skip to content

Commit cf4305b

Browse files
committed
Switch exception field to use exception resolver
1 parent 58cc3c8 commit cf4305b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

log4j-layout-template-json/src/main/resources/GcpLayout.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
},
5252
"logging.googleapis.com/trace_sampled": true,
5353
"exception": {
54-
"$resolver": "pattern",
55-
"pattern": "%xEx"
54+
"$resolver": "exception",
55+
"field": "stackTrace",
56+
"stackTrace": {
57+
"stringified": true
58+
}
5659
},
5760
"thread": {
5861
"$resolver": "thread",

0 commit comments

Comments
 (0)