Spring Integration: save integration flows logs to database

Viewed 145

I have been required to log the integration flow requests and save to logs that I am getting to the database. Logging the request is working fine, but my question is how can I store this logs that I am getting from the logAndReply() to the database?

 return IntegrationFlows.from(Http.inboundGateway("/foo")
                            .requestMapping(m -> m.methods(HttpMethod.POST))
                            .validator(new Validator()).errorChannel("errorHandler.input"))
                    .transform(Transformers.objectToString())
                  
                    .transform(new TransformingMethod())
                    .logAndReply(LoggingHandler.Level.INFO);
1 Answers
Related