Skip to content

Implement logs in the plugin code#299

Merged
deepikaSingh2711 merged 2 commits into
developfrom
SDMEXT-Logging-feature
Jul 9, 2026
Merged

Implement logs in the plugin code#299
deepikaSingh2711 merged 2 commits into
developfrom
SDMEXT-Logging-feature

Conversation

@deepikaSingh2711

@deepikaSingh2711 deepikaSingh2711 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

This PR adds comprehensive log statements (DEBUG, INFO, WARN, ERROR) to relevant classes, methods, and lines throughout the SDM plugin codebase using the CAP logger cds.log('sdm') with explicit level prefixes for clarity.

Added default log level configuration:

[CDS_LOG_LEVELS_SDM: info] in mta.yaml — controls runtime verbosity via environment variable

How to adjust log level

  1. BTP Cockpit → SrvApp → Environment Variables → set CDS_LOG_LEVELS_SDM to debug/info/warn/error → restart app
  2. mta.yaml → CDS_LOG_LEVELS_SDM: info -> change default to debug/info/warn/error → redeploy

LOG LEVELS

debug: shows DEBUG + INFO + WARN + ERROR + FATAL
info: shows INFO + WARN + ERROR + FATAL
warn: shows WARN + ERROR + FATAL
error: shows ERROR + FATAL

Any documentation

wiki documentation added

https://wiki.one.int.sap/wiki/spaces/sapecm/pages/6247793706/Logging+in+Node.js+Plugin

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.
  • I have ran integration tests on my cloud environment.
  • I have validated blackduck portal for any vulnerability after my commit.

Upload Screenshots/lists of the scenarios tested

  • I have Uploaded Screenshots or added lists of the scenarios tested in description
Screenshot 2026-07-07 at 3 35 29 PM

@rashmiangadi05 rashmiangadi05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepikaSingh2711 deepikaSingh2711 merged commit 152b8b0 into develop Jul 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants