OpenLog - Feature Request: Visible Java Class Constants
Can you make severity type constants available outside the OpenLogItem Java class i.e. make them public.
// common severity types
static final String SEVERITY_LOW = "0";
static final String SEVERITY_MEDIUM = "1";
static final String SEVERITY_HIGH = "2";
to
// common severity types
public static final String SEVERITY_LOW = "0";
public static final String SEVERITY_MEDIUM = "1";
public static final String SEVERITY_HIGH = "2";
Then I dont need to remember there values as I find it difficult remembering three numbers especially when there sequential ;)
I can then use these constants thus:
public static OpenLogItem oli = new OpenLogItem(); // Log Stuff
public void doStuff() {
oli.logEvent("My Event", OpenLogItem.SEVERITY_HIGH, doc);
oli.logEvent("My Other Event", oli.SEVERITY_HIGH, doc);
}
Thanks.
Taken Actions by OwnersNo actions have been taken yet.Documents