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 Mark Womack <mw...@bevocal.com> on 2003/04/01 02:30:13 UTC
RE: "Acorn" request for core log4j
Richard,
What do you want to use this value for? What would you like the value to
be?
-Mark
ps Sorry for the delay, things got busy here are work too...:-)
----------------------------------------------------------------------------
-------
Ceki/Mark,
Can you add a toString() method to the
AppenderSkeleton and the Logger objects? I'm
displaying these in the gui, and thought that the
toString() method would be a great way of displaying
them (doesn't require me to cast from Object). Any
objections?
Thanks,
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
RE: "Acorn" request for core log4j
Posted by Richard Bair <rb...@yahoo.com>.
He he he, work shmork :-)
I figured that returning the appender's name would be
handy.
Basically, I have a List of Objects - Strings,
appenders, and Loggers. These objects are displayed
in a JList. So, either the toString() method is
overridden to display something pretty and nice (like
the appender name), or I have to detect what type of
object is in the List and then either show its name,
or call toString(), etc depending on the object type.
I may end up taking the latter approach anyway because
it gives me greater flexibilty in what I display in
the JList. It just might be nice to print something
besides the object's hash in memory on a toString()
call by default.
Not very critical at this point.
Richard
--- Mark Womack <mw...@bevocal.com> wrote:
> Richard,
>
> What do you want to use this value for? What would
> you like the value to
> be?
>
> -Mark
>
> ps Sorry for the delay, things got busy here are
> work too...:-)
>
>
----------------------------------------------------------------------------
> -------
>
> Ceki/Mark,
>
> Can you add a toString() method to the
> AppenderSkeleton and the Logger objects? I'm
> displaying these in the gui, and thought that the
> toString() method would be a great way of displaying
> them (doesn't require me to cast from Object). Any
> objections?
>
> Thanks,
> Richard
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> log4j-dev-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org