2 package org
.de
.metux
.log
;
4 public class LoglevelID
6 public static final int DEBUG
= 5;
7 public static final int NOTICE
= 4;
8 public static final int WARNING
= 3;
9 public static final int ERROR
= 2;
10 public static final int NONE
= 0;
12 public static int toID(String name
)
14 return toID(name
,NOTICE
);
17 public static int toID(String name
, int def
)
22 name
= name
.toLowerCase();
23 if (name
.equals("debug"))
25 if (name
.equals("notice"))
27 if (name
.equals("warning"))
29 if (name
.equals("error"))