camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Mikhalevski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6871) Log compenent removes line separators from logged message when maxChars=0
Date Thu, 17 Oct 2013 14:05:42 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Savva Mikhalevski updated CAMEL-6871:
-------------------------------------

    Attachment: camel-log-formatter-test.zip

> Log compenent removes line separators from logged message when maxChars=0
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-6871
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6871
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.6
>            Reporter: Savva Mikhalevski
>         Attachments: camel-log-formatter-test.zip
>
>
> *Steps*
> # Send exchange with input body equal to {{"1" + LS + "2" + LS + "3"}}, where {{LS}}
is a system dependent line separator.
> # Log exchange input body with Camel log component:
> {code}<to uri="log:logger_name?level=INFO" />{code}
> *Expected*
> Exchange input body is logged with {{LS}} charcters preserved:
> {code}1
> 2
> 3{code}
> *Observed*
> Exchange is logged without {{LS}} characters:
> {code}123{code}
> *Workaround*
> Use log EIP instead:
> {code}<log loggingLevel="INFO" logName="logger_name" message="${body}" />{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message