Hi

I would like to see short names in the Level class (as I proposed already
earlier this year). A single character entry would do.

Here some code snippets to realize it:

...

public class Priority {

  int level;
  String levelStr;
  String shortLevelStr;

...

  /**
     Returns the short string representation of this priority.
   */
  final
  public
  String toShortString() {
    return shortLevelStr;
  }

...

---------------------

...

public class Level extends Priority {


  /**
     The <code>OFF</code> has the highest possible rank and is
     intended to turn off logging.  */
  final static public Level OFF = new Level(OFF_INT, "OFF", "O", 0);

...

  /**
     Instantiate a Level object.
   */
  protected
  Level(int level, String levelStr, String shortLevelString, int
syslogEquivalent) {
    super(level, levelStr, shortLevelString, syslogEquivalent);
  }

...

------------------------------------

regards

-Bernd.

-- 
Bernd Goetz                                     [EMAIL PROTECTED]
TARSEC AG                                       Tel +41 1 496 61 11
Rautistrasse 12                                 Fax +41 1 496 61 99
Postfach                                        Mobile +41 79 759 04 26
8047 Zurich, Switzerland                        http://www.tarsec.com
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to