Package anbxj
Class AnBx_Debug
java.lang.Object
anbxj.AnBx_Debug
AnBx Debug/Logging utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Retrieve the application namestatic void
out
(AnBx_Layers layer, Object obj) Print a debug message related to an object based on the debug level set and the current layerstatic void
setALL
(boolean value) Enable/disable all debug levelsstatic void
setAPPLICATION
(boolean application) Enable/disable the APPLICATION debug levelstatic void
setAppname
(String appname) Set the application namestatic void
setBUSINESS_LOGIC
(boolean business_logic) Enable/disable the BUSINESS_LOGIC debug levelstatic 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 levelstatic void
setENCRYPTION
(boolean encryption) Enable/disable the ENCRYPTION debug levelstatic void
setEXCEPTION
(boolean exception) Enable/disable the EXCEPTION debug levelstatic void
setLANGUAGE
(boolean language) set the LANGUAGE debug levelstatic void
setNETWORK
(boolean network) Enable/disable the NETWORK debug levelstatic void
setPROTOCOL
(boolean protocol) Enable/disable the PROTOCOL debug levelstatic void
setSESSION
(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
-