Package org.ocpsoft.rewrite.config
Class Log
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.config.Log
- All Implemented Interfaces:
Operation,OperationBuilder,Parameterized
An
Operation responsible for logging a message.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionGet all requiredParameternames for thisParameterizedinstance.static LogLog a message at the givenLogger.Level.voidperform(Rewrite event, EvaluationContext context) Perform theOperation.voidsetParameterStore(ParameterStore store) Initialize thisParameterizedinstance with the globalParameterStore.toString()Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Method Details
-
message
Log a message at the givenLogger.Level.The message may be parameterized:
For example, assuming a given
Conditionhas 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}")- Parameters:
level- the logLogger.Levelto which the message be writtenmessage-ParameterizedPatternto be written to the log.
-
perform
Description copied from interface:OperationPerform theOperation. -
getRequiredParameterNames
Description copied from interface:ParameterizedGet all requiredParameternames for thisParameterizedinstance.- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
Description copied from interface:ParameterizedInitialize thisParameterizedinstance with the globalParameterStore.- Specified by:
setParameterStorein interfaceParameterized
-
toString
-