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 . |
and
public 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)
Operation
Operation
.public Set<String> getRequiredParameterNames()
Parameterized
Parameter
names for this Parameterized
instance.getRequiredParameterNames
in interface Parameterized
public void setParameterStore(ParameterStore store)
Parameterized
Parameterized
instance with the global ParameterStore
.setParameterStore
in interface Parameterized
Copyright © 2014 OCPsoft. All Rights Reserved.