You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Remko Popma <re...@gmail.com> on 2016/08/18 03:10:32 UTC

Re: logging-log4j2 git commit: LOG4J2-1526 Possibility to set StatusLogger destination in ConfigurationBuilder

Can we change the naming to make configuration more intuitive? At first glance there's no way to see that these two lines are related:

 status = ERROR
+dest = err

How about something like this?

status = ERROR
statusDestination = err

Sent from my iPhone

> On 2016/08/18, at 4:54, mikes@apache.org wrote:
> 
> status = ERROR
> +dest = err

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


Re: logging-log4j2 git commit: LOG4J2-1526 Possibility to set StatusLogger destination in ConfigurationBuilder

Posted by Gary Gregory <ga...@gmail.com>.
On Aug 18, 2016 1:31 AM, "Mikael Ståldal" <mi...@magine.com> wrote:
>
> The naming is the same as already used in XML and JSON config files. I
think it would be confusing if different config formats uses different
names for the same thing.

Ah, I was not aware of that.

Gary
>
>
> On Thu, Aug 18, 2016 at 6:54 AM, Gary Gregory <ga...@gmail.com>
wrote:
>>
>> Or:
>>
>> status = ERROR
>> status.destination = err
>>
>> Gary
>>
>> On Wed, Aug 17, 2016 at 8:10 PM, Remko Popma <re...@gmail.com>
wrote:
>>>
>>> Can we change the naming to make configuration more intuitive? At first
glance there's no way to see that these two lines are related:
>>>
>>>  status = ERROR
>>> +dest = err
>>>
>>> How about something like this?
>>>
>>> status = ERROR
>>> statusDestination = err
>>>
>>> Sent from my iPhone
>>>
>>> > On 2016/08/18, at 4:54, mikes@apache.org wrote:
>>> >
>>> > status = ERROR
>>> > +dest = err
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>>
>>
>>
>>
>> --
>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> Java Persistence with Hibernate, Second Edition
>> JUnit in Action, Second Edition
>> Spring Batch in Action
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>
>
>
>
> --
>
>
> Mikael Ståldal
> Senior software developer
>
> Magine TV
> mikael.staldal@magine.com
> Grev Turegatan 3  | 114 46 Stockholm, Sweden  |   www.magine.com
>
> Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
> (or responsible for delivery of the message to such a person), you may
not copy or deliver this message to anyone. In such case,
> you should destroy this message and kindly notify the sender by reply
email.

Re: logging-log4j2 git commit: LOG4J2-1526 Possibility to set StatusLogger destination in ConfigurationBuilder

Posted by Mikael Ståldal <mi...@magine.com>.
The naming is the same as already used in XML and JSON config files. I
think it would be confusing if different config formats uses different
names for the same thing.


On Thu, Aug 18, 2016 at 6:54 AM, Gary Gregory <ga...@gmail.com>
wrote:

> Or:
>
> status = ERROR
> status.destination = err
>
> Gary
>
> On Wed, Aug 17, 2016 at 8:10 PM, Remko Popma <re...@gmail.com>
> wrote:
>
>> Can we change the naming to make configuration more intuitive? At first
>> glance there's no way to see that these two lines are related:
>>
>>  status = ERROR
>> +dest = err
>>
>> How about something like this?
>>
>> status = ERROR
>> statusDestination = err
>>
>> Sent from my iPhone
>>
>> > On 2016/08/18, at 4:54, mikes@apache.org wrote:
>> >
>> > status = ERROR
>> > +dest = err
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
[image: MagineTV]

*Mikael Ståldal*
Senior software developer

*Magine TV*
mikael.staldal@magine.com
Grev Turegatan 3  | 114 46 Stockholm, Sweden  |   www.magine.com

Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.

Re: logging-log4j2 git commit: LOG4J2-1526 Possibility to set StatusLogger destination in ConfigurationBuilder

Posted by Gary Gregory <ga...@gmail.com>.
Or:

status = ERROR
status.destination = err

Gary

On Wed, Aug 17, 2016 at 8:10 PM, Remko Popma <re...@gmail.com> wrote:

> Can we change the naming to make configuration more intuitive? At first
> glance there's no way to see that these two lines are related:
>
>  status = ERROR
> +dest = err
>
> How about something like this?
>
> status = ERROR
> statusDestination = err
>
> Sent from my iPhone
>
> > On 2016/08/18, at 4:54, mikes@apache.org wrote:
> >
> > status = ERROR
> > +dest = err
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory