1 /** 2 * Copyright By Grandsoft Company Limited. 3 * 2012-3-20 下午12:55:34 4 */ 5 package gboat2.base.core.logging; 6 7 /** 8 * 业务日志级别 9 * 10 * @author zhangxj-a 11 * @author hemw 12 * @date 2012-3-20 13 */ 14 public enum Level { 15 /** 16 * The <code>DEBUG</code> Level designates fine-grained informational events 17 * that are most useful to debug an application. 18 */ 19 DEBUG(10000), 20 21 /** 22 * The <code>INFO</code> level designates informational messages that 23 * highlight the progress of the application at coarse-grained level. 24 */ 25 INFO(20000), 26 27 /** 28 * The <code>WARN</code> level designates potentially harmful situations. 29 */ 30 WARN(30000), 31 32 /** 33 * The <code>ERROR</code> level designates error events that might still 34 * allow the application to continue running. 35 */ 36 ERROR(40000), 37 38 OFF(Integer.MAX_VALUE); 39 40 private int value; 41 42 Level(int value) { 43 this.value = value; 44 } 45 46 public int getValue() { 47 return value; 48 } 49 }