public class Log
extends org.ocpsoft.rewrite.config.DefaultOperationBuilder
implements org.ocpsoft.rewrite.param.Parameterized
Log.message(Level.INFO, "Client requested path: {p}")
Log#message(Level, String)}| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredParameterNames() |
static Log |
message(Class<?> cls,
org.ocpsoft.logging.Logger.Level level,
String message) |
static Log |
message(org.ocpsoft.logging.Logger.Level level,
String message)
Log a message at the given
Logger.Level. |
void |
perform(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context) |
void |
setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store) |
String |
toString() |
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 static Log message(Class<?> cls, org.ocpsoft.logging.Logger.Level level, String message)
public void perform(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
perform in interface org.ocpsoft.rewrite.config.Operationpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface org.ocpsoft.rewrite.param.Parameterizedpublic void setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store)
setParameterStore in interface org.ocpsoft.rewrite.param.ParameterizedCopyright © 2021 JBoss by Red Hat. All rights reserved.