[logback-user] How to configure logback to NOT truncate stacktraces?
KARR, DAVID
dk068x at att.com
Sat Nov 5 18:15:27 CET 2022
Never mind, this was all right in front of me. We have a logback include file which configures the LoggingEventCompositeJsonEncoder, which includes a default "stackTrace" element with all the properties I'm concerned about.
> -----Original Message-----
> From: logback-user <logback-user-bounces at qos.ch> On Behalf Of KARR,
> DAVID
> Sent: Thursday, November 3, 2022 3:57 PM
> To: logback-user at qos.ch
> Subject: [logback-user] How to configure logback to NOT truncate
> stacktraces?
>
> *** Security Advisory: This Message Originated Outside of AT&T ***.
> Reference http://cso.att.com/EmailSecurity/IDSP.html for more
> information.
>
> I maintain a bunch of SpringBoot services that use logback to configure
> logging, and slf4j in the Java code. Our log messages currently
> truncate stacktraces.
>
> We're currently using SpringBoot 2.3.12, which pulls in logback-* v1.2.9
> and logstash-logback-encoder v6.1. We are working on upgrades, but I
> can't change these right now.
>
> I'd like to be able to configure how much of the stacktrace is
> truncated, and reverse the order of root causes, so the "rootest" one is
> shown first. I found several wiki pages on the internet that talk about
> how to do this, and they were all vague and ambiguous. I tried one that
> apparently violated the expected logback schema, so it failed to parse
> it. How can figure out exactly how to do this with the versions of
> artifacts that I have right now?
> _______________________________________________
> logback-user mailing list
> logback-user at qos.ch
> https://urldefense.com/v3/__https://mailman.qos.ch/cgi-
> bin/mailman/listinfo/logback-
> user__;!!BhdT!lLAcc637CgUawshGQDLpksxlZnGrR65FmHNNfFGpYOMJG76-
> WwzhQTjQNr7TV-gIAot_SDu2GJc$
More information about the logback-user
mailing list