Output.java:
public class Output {
// Output type constants
// 0 - Debug
// 1 - Info
// 2 - Warning
// 3 - Critical Error
// 4 - Raw
public static void main(String args[]) {
System.out.println("This file is a dependancy only, and can not be run by itself.");
}
public static void out(int type, String data) {
switch(type) {
case 0: //debug
//if debugging {
System.out.println("[DEBUG] " + data);
//}
break;
case 1: //info
System.out.println("[INFO] " + data);
break;
case 2: //warning
System.out.println("[WARNING] " + data);
break;
case 3: //crit error
System.out.println("[ERROR] " + data);
break;
case 4: //raw
System.out.println(data);
break;
}
}
}
TODO:
Finish debug-enabled checking
Add constants
Inherit needed stuff (the propertybag)
Set a package, etc
Comment.