Package com.opensymphony.workflow.util
Class LogRegister
java.lang.Object
com.opensymphony.workflow.util.LogRegister
- All Implemented Interfaces:
Register
This is a register, which helps logging using commons-logging.
It wraps a Logger instance which is linked to the "OSWorkflow//" category
Following optional arguments available:
- addInstanceId=true/false - if the instance id of the workflow should be added to the category. Defaults to false
- Category="OSWorkflow" - change the name of the log category other than "OSWorkflow"
logger = transientVars.get("logger");
logger.debug("hello logger!");
- Author:
- Zoltan Luspai
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionregisterVariable(WorkflowContext context, WorkflowEntry entry, Map args, com.opensymphony.module.propertyset.PropertySet ps) Returns the object to bind to the variable map for this workflow instance.
-
Constructor Details
-
LogRegister
public LogRegister()
-
-
Method Details
-
registerVariable
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, com.opensymphony.module.propertyset.PropertySet ps) Description copied from interface:RegisterReturns the object to bind to the variable map for this workflow instance.- Specified by:
registerVariablein interfaceRegister- Parameters:
context- The current workflow contextentry- The workflow entry. Note that this might be null, for example in a pre function before the workflow has been initialisedargs- Map of arguments as set in the workflow descriptorps-- Returns:
- the object to bind to the variable map for this workflow instance
- See Also:
-