Package org.openprovenance.prov.log
Class ProvLevel
- java.lang.Object
-
- org.apache.log4j.Priority
-
- org.apache.log4j.Level
-
- org.openprovenance.prov.log.ProvLevel
-
- All Implemented Interfaces:
Serializable
public class ProvLevel extends org.apache.log4j.LevelAdapted from http://jaitechwriteups.blogspot.co.uk/2006/07/create-your-own-logging-level-in-log4j.html- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.log4j.LevelPROVLevelrepresenting my log levelstatic StringPROV_STRINGstatic intPROVENANCE_INTValue of Provenance trace level.
-
Method Summary
Modifier and Type Method Description static org.apache.log4j.LeveltoLevel(int val)Checks whether val is#PROVENANCE_INT.static org.apache.log4j.LeveltoLevel(int val, org.apache.log4j.Level defaultLevel)Checks whether val is#PROVENANCE_INT.static org.apache.log4j.LeveltoLevel(String sArg)Checks whether sArg is "PROV" level.static org.apache.log4j.LeveltoLevel(String sArg, org.apache.log4j.Level defaultLevel)Checks whether sArg is "MY_TRACE" level.
-
-
-
Field Detail
-
PROV_STRING
public static final String PROV_STRING
- See Also:
- Constant Field Values
-
PROVENANCE_INT
public static final int PROVENANCE_INT
Value of Provenance trace level. This value is lesser thanPriority.INFO_INTand higher thanPriority.DEBUG_INT- See Also:
- Constant Field Values
-
PROV
public static final org.apache.log4j.Level PROV
Levelrepresenting my log level
-
-
Constructor Detail
-
ProvLevel
protected ProvLevel(int arg0, String arg1, int arg2)Constructor- Parameters:
arg0-arg1-arg2-
-
-
Method Detail
-
toLevel
public static org.apache.log4j.Level toLevel(String sArg)
Checks whether sArg is "PROV" level. If yes then returnsPROV, else callstoLevel(String, Level)passing itLevel.DEBUGas the defaultLevel.- See Also:
Level.toLevel(java.lang.String),Level.toLevel(java.lang.String, org.apache.log4j.Level)
-
toLevel
public static org.apache.log4j.Level toLevel(int val)
Checks whether val is#PROVENANCE_INT. If yes then returns#PROV, else calls#toLevel(int, Level)passing itLevel.DEBUGas the defaultLevel- See Also:
Level.toLevel(int),Level.toLevel(int, org.apache.log4j.Level)
-
toLevel
public static org.apache.log4j.Level toLevel(int val, org.apache.log4j.Level defaultLevel)Checks whether val is#PROVENANCE_INT. If yes then returns#PROV, else callsLevel.toLevel(int, org.apache.log4j.Level)- See Also:
Level.toLevel(int, org.apache.log4j.Level)
-
toLevel
public static org.apache.log4j.Level toLevel(String sArg, org.apache.log4j.Level defaultLevel)
Checks whether sArg is "MY_TRACE" level. If yes then returns#PROV, else callsLevel.toLevel(java.lang.String, org.apache.log4j.Level)- See Also:
Level.toLevel(java.lang.String, org.apache.log4j.Level)
-
-