logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bobby Bissett <robert.biss...@enterprisedb.com>
Subject Re: logging Exception toString with slf4j
Date Fri, 09 Oct 2020 04:06:31 GMT
On Thu, Oct 8, 2020 at 10:37 PM Clément Guillaume <cguillaume@hotpads.com>
wrote:

>
> I guess I can do the following (not very elegant)
>   logger.warn("{} ", (Object)new Exception("my message"));
>

Or just log: new Exception("my message").toString();

Cheers,
Bobby

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message