cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I've written an CAP application that's running well in my local environment. When deploying to XSA server it produces an error.
I wanted to use @sap/logging package to be more verbose at server side to narrow down the error.
Unforturnately CAP does not pass on the LoggingContext I created in my server.js file and added as middleware to the express app to the request.

I then tried to write to console with console.log, console.info, console.error. But also this output does not appear in the server logs.

Is there a way to log / trace with CAP at server side?

Regards
Helmut

Accepted Solutions (1)

Accepted Solutions (1)

htammen
Active Contributor
0 Likes

Hi Jhodel,

thanks for the answer. The problem was that my custom implementation of CAP servicehandler was not detected automagically. I had to define it via annotation @impl

Answers (0)