Re: [slf4j-user] Combined logging and throwing question

2020-05-06 Thread Ralph Goers
It also might make sense to figure out how to accomplish this with the builder api. Ralph > On May 6, 2020, at 10:03 PM, Ralph Goers wrote: > > When I started to read this I thought the conclusion was going to end with > something more like: > > throw new ValidationException(logger.error("P

Re: [slf4j-user] Combined logging and throwing question

2020-05-06 Thread Ralph Goers
When I started to read this I thought the conclusion was going to end with something more like: throw new ValidationException(logger.error("Param %s must be in [%s-%s]", name, low, high)); Or logger.throw("Param %s must be in [%s-%s]", name, low, high), ValidationException.class); But I do

Re: [slf4j-user] Combined logging and throwing question

2020-05-06 Thread Robert Middleton
This would result in a large number of methods to be added most likely, but you could potentially combine the logging with the exception throwing: logger.errorAndThrow( message, ValidationException.class ); which would log the message at the error level, and then use the given class to construct

Fwd: [slf4j-user] Combined logging and throwing question

2020-05-06 Thread Matt Sicker
Potentially useful API update to look at here. Some sort of Logger that throws an exception with the log message instead? -- Forwarded message - From: Norbert Kiesel Date: Wed, 6 May 2020 at 12:59 Subject: [slf4j-user] Combined logging and throwing question To: User list for the s

Re: [VOTE] Release Log4j Scala API 12.0-rc4

2020-05-06 Thread Matt Sicker
IIRC, the site builds as part of a normal build. Did you check the target directory afterwards? On Tue, May 5, 2020 at 16:52 Gary Gregory wrote: > +1 but... while everything builds per the instructions I found, it would be > nice to have something that tells you 'I ran tests and nothing blew up'