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 Gary Gregory <ga...@gmail.com> on 2016/02/15 17:27:17 UTC

Deprecate entry/exit()

Hi All:

Should we deprecate Logger.entry() and exit() in favor of
Logger.traceEnter() and traceExit()?

Gary

-- 
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

Re: Deprecate entry/exit()

Posted by Gary Gregory <ga...@gmail.com>.
Ok, I think this will work:

deprecate enter() for traceEntry()
deprecate all exit() methods for traceExit() methods
Javadoc entry(Object...) and mention traceEntry() methods.

Gary

On Mon, Feb 15, 2016 at 8:37 AM, Ralph Goers <ra...@dslextreme.com>
wrote:

> Unfortunately, all the entry and exit methods can’t be deprecated.
> entry(Object… params) is ambiguous with traceEntry(String format,
> Object…params). That, and the fact that entry(String fqcn, Object… params)
> already existed is the only reason I created the traceEntry() methods.
>
> Ralph
>
> On Feb 15, 2016, at 9:27 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> Hi All:
>
> Should we deprecate Logger.entry() and exit() in favor of
> Logger.traceEnter() and traceExit()?
>
> Gary
>
> --
> 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
>
>
>


-- 
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

Re: Deprecate entry/exit()

Posted by Ralph Goers <ra...@dslextreme.com>.
Unfortunately, all the entry and exit methods can’t be deprecated. entry(Object… params) is ambiguous with traceEntry(String format, Object…params). That, and the fact that entry(String fqcn, Object… params) already existed is the only reason I created the traceEntry() methods.

Ralph

> On Feb 15, 2016, at 9:27 AM, Gary Gregory <ga...@gmail.com> wrote:
> 
> Hi All:
> 
> Should we deprecate Logger.entry() and exit() in favor of Logger.traceEnter() and traceExit()?
> 
> Gary
> 
> -- 
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org  <ma...@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 <http://garygregory.wordpress.com/> 
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>