Tue Nov 11, 2008 11:00 pm
import java.util.logging.*;
public class CustomLevel extends Level{
public static void main(String[] args) {
Logger log = Logger.getLogger("RoseIndia.Net");
Level level1 = Level.WARNING;
int num = level1.intValue();
Level level = new CustomLevel("RoseIndia Level", num);
Level clevel = level.parse("RoseIndia Level");
log.log(clevel, "This is a Custom Level");
}
public CustomLevel(String str, int val){
super(str, val);
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.