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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.