Package anbxj
Class AnBx_Debug
java.lang.Object
anbxj.AnBx_Debug
AnBx Debug/Logging utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringRetrieve the application namestatic voidout(AnBx_Layers layer, Object obj) Print a debug message related to an object based on the debug level set and the current layerstatic voidsetALL(boolean value) Enable/disable all debug levelsstatic voidsetAPPLICATION(boolean application) Enable/disable the APPLICATION debug levelstatic voidsetAppname(String appname) Set the application namestatic voidsetBUSINESS_LOGIC(boolean business_logic) Enable/disable the BUSINESS_LOGIC debug levelstatic voidsetDebug(boolean network, boolean encryption, boolean language, boolean session, boolean protocol, boolean business_logic, boolean application, boolean always, boolean exception) Enable/disable individual debug levelstatic voidsetENCRYPTION(boolean encryption) Enable/disable the ENCRYPTION debug levelstatic voidsetEXCEPTION(boolean exception) Enable/disable the EXCEPTION debug levelstatic voidsetLANGUAGE(boolean language) set the LANGUAGE debug levelstatic voidsetNETWORK(boolean network) Enable/disable the NETWORK debug levelstatic voidsetPROTOCOL(boolean protocol) Enable/disable the PROTOCOL debug levelstatic voidsetSESSION(boolean session) Enable/disable the SESSION debug level
-
Constructor Details
-
AnBx_Debug
public AnBx_Debug()Default constructor
-
-
Method Details
-
out
Print a debug message related to an object based on the debug level set and the current layer- Parameters:
layer- the current layerobj- the object
-
setALL
public static void setALL(boolean value) Enable/disable all debug levels- Parameters:
value- (true/false)
-
setDebug
public static void setDebug(boolean network, boolean encryption, boolean language, boolean session, boolean protocol, boolean business_logic, boolean application, boolean always, boolean exception) Enable/disable individual debug level- Parameters:
network- the NETWORK to set (true/false)encryption- the ENCRYPTION to set (true/false)language- the LANGUAGE to set (true/false)session- the SESSION to set (true/false)protocol- the PROTOCOL to set (true/false)business_logic- the BUSINESS_LOGIC to set (true/false)application- the APPLICATION to set (true/false)always- the ALWAYS to set (true/false)exception- the EXCEPTION to set (true/false)
-
setAPPLICATION
public static void setAPPLICATION(boolean application) Enable/disable the APPLICATION debug level- Parameters:
application- the APPLICATION to set (true/false)
-
setBUSINESS_LOGIC
public static void setBUSINESS_LOGIC(boolean business_logic) Enable/disable the BUSINESS_LOGIC debug level- Parameters:
business_logic- the BUSINESS_LOGIC to set (true/false)
-
setENCRYPTION
public static void setENCRYPTION(boolean encryption) Enable/disable the ENCRYPTION debug level- Parameters:
encryption- the ENCRYPTION to set (true/false)
-
setEXCEPTION
public static void setEXCEPTION(boolean exception) Enable/disable the EXCEPTION debug level- Parameters:
exception- the EXCEPTION to set (true/false)
-
setLANGUAGE
public static void setLANGUAGE(boolean language) set the LANGUAGE debug level- Parameters:
language- the LANGUAGE to set (true/false)
-
setNETWORK
public static void setNETWORK(boolean network) Enable/disable the NETWORK debug level- Parameters:
network- the NETWORK to set (true/false)
-
setPROTOCOL
public static void setPROTOCOL(boolean protocol) Enable/disable the PROTOCOL debug level- Parameters:
protocol- the PROTOCOL to set (true/false)
-
setSESSION
public static void setSESSION(boolean session) Enable/disable the SESSION debug level- Parameters:
session- the SESSION to set (true/false)
-
getAppname
Retrieve the application name- Returns:
- the appname
-
setAppname
Set the application name- Parameters:
appname- the appname to set
-