public class Log extends DefaultOperationBuilder implements Parameterized
Operation responsible for logging a message.| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredParameterNames()
Get all required
Parameter names for this Parameterized instance. |
static Log |
message(org.ocpsoft.logging.Logger.Level level,
String message)
Log a message at the given
Logger.Level. |
void |
perform(Rewrite event,
EvaluationContext context)
Perform the
Operation. |
void |
setParameterStore(ParameterStore store)
Initialize this
Parameterized instance with the global ParameterStore. |
andpublic static Log message(org.ocpsoft.logging.Logger.Level level, String message)
Logger.Level.
The message may be parameterized:
For example, assuming a given Condition has been configured to use a parameter "p"}:
Path.matches("/{p}")
The parameter "p" may be referenced in the log message:
Log.message(Level.INFO, "Client requested path: {p}")
level - the log Logger.Level to which the message be writtenmessage - ParameterizedPattern to be written to the log.ConfigurationRuleParameterBuilder#where(String)}public void perform(Rewrite event, EvaluationContext context)
OperationOperation.public Set<String> getRequiredParameterNames()
ParameterizedParameter names for this Parameterized instance.getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
ParameterizedParameterized instance with the global ParameterStore.setParameterStore in interface ParameterizedCopyright © 2014 OCPsoft. All Rights Reserved.