Log.logException()
Signature
void logException(Object logger, String level, String message, BEException thrown, Object... arguments)
Domain
ACTION, CONDITION, QUERY, BUI
Description
Logs a message with an exception.
Parameters
Name | Type | Description |
logger | Object | The logger obtained from getLogger(..) |
level | String | The log level. Defaults to "debug". |
message | String | The message to log, with optional argument placeholders. |
thrown | BEException | An exception to be logged. |
arguments | Object[] | The argument values to be substituted in the message. |
Example
Object logger = Log.getLogger("Rules.VerifyCreditRF");
Log.logException(logger, "error", "Logged this message with argument %s", Exception.newException(....), myArgument);