...
Info |
---|
title | Difference between log in the DSL and [Log] component |
---|
|
The log DSL is much lighter and meant for logging human logs such as Starting to do ... etc. It can only log a message based on the Simple language. On the other hand Log component is a full fledged component which involves using endpoints and etc. The Log component is meant for logging the Message itself and you have many URI options to control what you would like to be logged. |
Tip |
---|
title | Logging message body with streamed messages |
---|
|
If the message body is stream based, then logging the message body, may cause the message body to be empty afterwards. See this FAQ. For streamed messages you can use Stream Caching to allow logging the message body and be able to read the message body afterwards again. |
The log DSL have overloaded methods to set the logging level and/or name as well.
...