View Javadoc
1 package br.ufsc.tlm.j2me.logging; 2 3 /*** 4 * Created on Aug 26, 2003 5 * @author Eric Giguere 6 * Implemented by Thiago Lećo Moreira <thiago.leao.moreira@terra.com.br> from the article "A Simple MIDP Logging Facility" 7 * avaiable in http://wireless.java.sun.com/midp/ttips/logging/ 8 */ 9 public class Level { 10 11 private int level; 12 private String name; 13 14 public static final Level FINE = new Level(1, "FINE"); 15 public static final Level INFO = new Level(2, "INFO"); 16 public static final Level WARNING = new Level(3, "WARNING"); 17 public static final Level SEVERE = new Level(4, "SEVERE"); 18 public static final Level OFF = new Level(100, "OFF"); 19 20 private Level(int level, String name) { 21 this.level = level; 22 this.name = "[" + name + "]"; 23 } 24 25 public int intValue() { 26 return level; 27 } 28 29 public String toString() { 30 return name; 31 } 32 33 }

This page was automatically generated by Maven