Skip to content

[Feature request]: Method to read the log of the adapter startup in an integration test. #627

Description

@MiSchroe

As a part of the integration test I would like to check for a specific error/warn/info/debug-message to be present (or not present) in the log.

I can think of two possible implementation approaches:

  1. Implement a method that returns the log, e.g. as an array of log messages or log objects (logLevel, timestamp, message) or just the whole dump as string - whichever is easier to implement, though an array of log objects would be the most useful option from a developer side of view.
  2. Implement a method that checks the log for containing a specific Regex with a specific log level.

Use case

During fixing a bug in my adapter I have introduced a follow-up-bug that can be identified by a specific log message. To fix this bug I would like to implement a test case that checks for this specific log message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions