Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you insert a newline in message body of mule logger component

Can anyone tell me how to insert a new line in the message of a mule logger component?

For example, I have the following in the message for the logger:

Payload is: #[payload] 
Inbound Headers:  #[headers:INBOUND:*] 
Outbound Headers:  #[headers:OUTBOUND:*]  
Exceptions:  #[exception]

I'd like to insert a new line after each of the above. I've tried just adding \n to the end of each line, but that didn't work.

like image 981
Gary Sharpe Avatar asked Mar 06 '13 17:03

Gary Sharpe


People also ask

How do you insert a new line in DataWeave?

How to add new line in a variable value in dataweave 2.0. mmanthani. @mmanthani - Try "\n" this works fine.

What is logger mule4?

This Core component helps you monitor and debug your Mule application by logging important information such as error messages, status notifications, payloads, and so on.

What is log4j2 XML in Mule?

The log4j2. xml file is also based on a standard that is not Mule-specific. It is a Java logging framework provided by the Apache logging services in the Apache Log4j subproject and is the preferred logging framework.

What is the use of Transform message in MuleSoft?

The Transform (or Transform Message) component converts input data to a new output structure or format.


1 Answers

we can you the below format

#['\n'] #['\n']  #['\n'] #['\n']  #[payload] #[System.getProperty('line.separator')]
like image 197
Lova Chittumuri Avatar answered Sep 22 '22 03:09

Lova Chittumuri