You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Gary Gregory <ga...@gmail.com> on 2018/02/24 21:40:03 UTC

Logging messages and arrows

Hi All:

This is a detail so you might not care.

In my apps in library, instead of using arrows made from characters like
"->" I use the proper Unicode character for that arrow like "→".

Any thoughts on updating our logging in HttpCore to do this?

Gary

Re: Logging messages and arrows

Posted by Gary Gregory <ga...@gmail.com>.
On Sat, Feb 24, 2018 at 5:44 PM, Bindul Bhowmik <bi...@gmail.com>
wrote:

> On Sat, Feb 24, 2018 at 2:40 PM, Gary Gregory <ga...@gmail.com>
> wrote:
> > Hi All:
> >
> > This is a detail so you might not care.
> >
> > In my apps in library, instead of using arrows made from characters like
> > "->" I use the proper Unicode character for that arrow like "→".
> >
> > Any thoughts on updating our logging in HttpCore to do this?
>
> Gary,
>
> I know of applications using http client which run in non UTF default
> character encoding environments (for various reasons), and log
> messages in those cases will have non-printable characters if this
> change is made. So, if I may, please don't change the arrow. The plain
> '->' is good enough, unless you have a pressing need to change it.
>

This is not a pressing need. It just looks nicer.

Gary


>
> Also, maybe I am missing something, but wouldn't it be harder to use
> tools like grep and search filters with the 'pretty arrow', you cant
> just type that character from a standard keyboard.
>
> Bindul
> >
> > Gary
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Logging messages and arrows

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2018-02-24 at 17:44 -0700, Bindul Bhowmik wrote:
> On Sat, Feb 24, 2018 at 2:40 PM, Gary Gregory <garydgregory@gmail.com
> > wrote:
> > Hi All:
> > 
> > This is a detail so you might not care.
> > 
> > In my apps in library, instead of using arrows made from characters
> > like
> > "->" I use the proper Unicode character for that arrow like "→".
> > 
> > Any thoughts on updating our logging in HttpCore to do this?
> 
> Gary,
> 
> I know of applications using http client which run in non UTF default
> character encoding environments (for various reasons), and log
> messages in those cases will have non-printable characters if this
> change is made. So, if I may, please don't change the arrow. The
> plain
> '->' is good enough, unless you have a pressing need to change it.
> 
> Also, maybe I am missing something, but wouldn't it be harder to use
> tools like grep and search filters with the 'pretty arrow', you cant
> just type that character from a standard keyboard.
> 
> Bindul

I fully agree with Bindul. There is a lot of value in HC logs being
strictly ASCII and we should not sacrifice compatibility unless we have
a pressing need.

Oleg

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


Re: Logging messages and arrows

Posted by Bindul Bhowmik <bi...@gmail.com>.
On Sat, Feb 24, 2018 at 2:40 PM, Gary Gregory <ga...@gmail.com> wrote:
> Hi All:
>
> This is a detail so you might not care.
>
> In my apps in library, instead of using arrows made from characters like
> "->" I use the proper Unicode character for that arrow like "→".
>
> Any thoughts on updating our logging in HttpCore to do this?

Gary,

I know of applications using http client which run in non UTF default
character encoding environments (for various reasons), and log
messages in those cases will have non-printable characters if this
change is made. So, if I may, please don't change the arrow. The plain
'->' is good enough, unless you have a pressing need to change it.

Also, maybe I am missing something, but wouldn't it be harder to use
tools like grep and search filters with the 'pretty arrow', you cant
just type that character from a standard keyboard.

Bindul
>
> Gary

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