commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [crypto] Logging dependency
Date Fri, 10 Jun 2016 16:09:45 GMT
In any case, if the message String does not give sufficient context to
be able to understand where the message originated, then arguably it's
not a very good message.

On 10 June 2016 at 16:34, Matt Sicker <boards@gmail.com> wrote:
> Oh, I didn't even notice the printStackTrace() part until now. Good point.
>
> On 10 June 2016 at 10:23, Ralph Goers <ralph.goers@dslextreme.com> wrote:
>
>> Matt, there is a big difference between printing the stack trace and
>> walking it to find the info. printing it on every debug call would be
>> insane.
>>
>> Ralph
>>
>> > On Jun 10, 2016, at 8:09 AM, Matt Sicker <boards@gmail.com> wrote:
>> >
>> > Without Java 9, that's pretty much the only way to get the caller line
>> > number and other metadata besides the caller class.
>> >
>> > On 10 June 2016 at 09:44, Jochen Wiedmann <jochen.wiedmann@gmail.com>
>> wrote:
>> >
>> >> On Fri, Jun 10, 2016 at 4:02 PM, sebb <sebbaz@gmail.com> wrote:
>> >>
>> >>> Depends on what the implementation does.
>> >>>
>> >>> For example:
>> >>>
>> >>> @Override
>> >>> void debug( String message ){
>> >>>    new Throwable(message).printStackTrace();
>> >>> }
>> >>
>> >> Even a dumb application developer like me would at least like to see a
>> >> *bit* of performace. :-)
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> >> For additional commands, e-mail: dev-help@commons.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Matt Sicker <boards@gmail.com>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
>
> --
> Matt Sicker <boards@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message