Skip to content

Add log level and stream docs for the logging service#496

Merged
pru55e11 merged 10 commits intomainfrom
log-stream-logging
Mar 12, 2026
Merged

Add log level and stream docs for the logging service#496
pru55e11 merged 10 commits intomainfrom
log-stream-logging

Conversation

@riddhi2910
Copy link
Copy Markdown
Collaborator

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • 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 change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.


You control which log levels are emitted by setting the `LOG_LEVEL` input (for example in your action's `inputs` in `manifest.yml` or `app.config.yaml`). The runtime filters logs by this level before writing: only messages at or above the configured level are written. For example:

- If `LOG_LEVEL` is `error`, only `logger.error()` output is written (and typically goes to stderr). Calls to `logger.info()`, `logger.debug()`, and `logger.warn()` are not written at all, so they never appear in the Logs UI or CLI.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should remove the second half- "(and typically goes to stderr)". The first half of the sentence where it says that only logger.error() output is written is correct, but it doesn't go to stderr, instead goes to stdout.
I tested it out with a test project. This is because the aio-sdk's Winnston transport does not configure stderrLevels. Hence calls to logger.info(), logger.debug(), and logger.warn() are not written at all w; only logger.error()-however they only show up as stdout log_stream

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

added the fix, thank you for checking!

Comment thread src/pages/guides/app_builder_guides/application_logging/logging.md Outdated
- If `LOG_LEVEL` is `info`, you get `info`, `warn`, and `error`; `logger.debug()` is not written.
- If `LOG_LEVEL` is `debug`, all levels are written.

If you do not see expected `logger.info()` or `logger.debug()` output in the Logs UI or CLI, ensure the action's `LOG_LEVEL` is set to `info` or `debug` (for example `LOG_LEVEL: debug` in the action inputs). The Logs UI filters by stream (stdout or stderr); what appears in each stream depends on what was actually emitted, which is governed by `LOG_LEVEL`.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

With the change of Line 37 , let's also simplify this line as well to something like -
If you do not see expected logger.info() or logger.debug() output in the Logs UI or CLI, ensure the action's LOG_LEVEL is set to info or debug (for example LOG_LEVEL: debug in the action inputs).

Copy link
Copy Markdown
Collaborator

@dthampy dthampy left a comment

Choose a reason for hiding this comment

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

Looks good now!

Copy link
Copy Markdown
Contributor

@purplecabbage purplecabbage left a comment

Choose a reason for hiding this comment

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

couple nits, but looks goot

Comment thread src/pages/guides/app_builder_guides/application_logging/logging.md Outdated
@pru55e11 pru55e11 merged commit 13b3cd7 into main Mar 12, 2026
2 checks passed
@pru55e11 pru55e11 deleted the log-stream-logging branch March 12, 2026 05:37
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.

5 participants