I am using Spring integration with this configuration:
@Bean MessageChannel errorChannel(){
return new PublishSubscribeChannel();
}
@MessagingGateway(name = "gatewayInbound",
defaultRequestChannel="farsRequestChannel", errorChannel="errorChannel"){
}
In this configuration, I avoid showing messages, but I want to create a basic log such as LOGGER.error ().
In addition, I work with SLFJ and logbak. Thus, an ideal script would integrate this error message with a similar configuration in my logback XML. For this reason:
- Can logback be used to log Spring LOGS integration errors?
- Can I show the error sent to the errorChannel file?
Can I personalize this error with this similar expression in the log? If I use LoggingHandler, I see a full stack trace, and I want to configure this message.
[% - 5level] -% d {dd / MM / YYYY HH: mm: ss} - [% file:% line] -% msg% n