You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Savva Mikhalevski (JIRA)" <ji...@apache.org> on 2013/10/17 16:03:41 UTC

[jira] [Created] (CAMEL-6871) Log compenent removes line separators from logged message when maxChars=0

Savva Mikhalevski created CAMEL-6871:
----------------------------------------

             Summary: 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


*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)