[Hawkular-dev] What should be the replacement for printlns in tests?
John Sanda
jsanda at redhat.com
Wed Jan 27 10:51:17 EST 2016
> On Jan 27, 2016, at 10:28 AM, Peter Palaga <ppalaga at redhat.com> wrote:
>
> On 2016-01-27 15:32, Jay Shaughnessy wrote:
>>
>> Yes, of course, that's the usefulness of loggers, but that doesn't mean
>> system println is worse than INFO logging in test code.
>
> Yes, println is worse than INFO logging because there e.g. is no way how
> you can pointedly turn printlns off for a given class.
>
>> Meaning, to the
>> point of adding checkstyle misery.
>
> @Matt perhaps wants to say something ? :)
>
> Checkstyle or not, I found myself adding printlns because I have not
> seen a better alternative.
>
> So there is nobody here who knows how to config the test logging with
> jboss.logging?
>
I haven’t paid too close attention to this thread, so maybe I missed some details. But why can’t you just use logack like we do in metrics as Thomas described?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20160127/7956b6c8/attachment-0001.html
More information about the hawkular-dev
mailing list