- Introduction
-
Sitemap
- Sitemap Evaluation
- Writing your own components
- Concepts
- Reference
-
Sitemap Components
-
Action
- ClearCacheAction
- ClearPersistentStoreAction
- CopySourceAction
- FormValidatorAction
- HelloAction
- HttpCacheAction
- HttpHeaderAction
- InputModuleAction
- LocaleAction
- LogAction
- PreemptiveLoaderAction
- PropagatorAction
- RequestParamAction
- RequestParameterExistsAction
- ResourceExistsAction
- SessionInvalidatorAction
- SessionIsValidAction
- SessionPropagatorAction
- SessionStateAction
- SessionValidatorAction
- SetCharacterEncodingAction
- SetterAction
- Generator
- Matcher
- Pipe
- Reader
- Selector
- Serializer
- Transformer
-
Action
- Control Flow
- Modularization (Blocks)
- Configuration & Initialization
- Project Reports
LogAction
Summary
A simple Action that logs a given message for a given log level.
Basic information
Component type | Action |
---|---|
Cocoon block | core |
Java class | org.apache.cocoon.acting.LogAction |
Name in Sitemap | |
Cacheable |
Documentation
A simple Action that logs a given message for a given log level.
Parameters:
- level (optional): Indicates the log level, defaults to 'info'
- console (optional): Indicates weather the message is also print to console, defaults to 'false'
- message (optional): The message to log, defaults to 'No log message given'
<map:action name="log" src="org.apache.cocoon.acting.LogAction" /> Example use:<map:match pattern="some-resource">
<!-- do something else -->
<map:act type="log">
<map:parameter name="level" value="info" />
<;map:parameter name=";message" value="Log message from sitemap action"
/>
<;map:parameter name="console" value="true" />
</map:act>
<!-- do something else -->;
</map:match>