Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StateLogger for structured logging of state machines #3077

Merged
merged 9 commits into from
Jun 17, 2022

Conversation

OlegDokuka
Copy link
Contributor

Adds state logger useful for state machine debugging purpose

Signed-off-by: Oleh Dokuka odokuka@vmware.com

Oleh Dokuka added 5 commits June 12, 2022 22:37
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
@OlegDokuka OlegDokuka requested a review from a team as a code owner June 16, 2022 08:24
Oleh Dokuka added 2 commits June 16, 2022 11:26
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Copy link
Member

@simonbasle simonbasle left a comment

Choose a reason for hiding this comment

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

nice !
a few minor polishing suggestions:

  1. even if it is package-private I would consider adding minimal javadoc to StateLogger
  2. maybe a minimal amount on FastLogger too (it is public, but in jcstress folder)
  3. I would consider adding a constructor for subscribers eg. SwitchOnFirstConditionalMain without the StateLogger parameter, rather than having to change all unit tests to pass in null

Oleh Dokuka added 2 commits June 17, 2022 17:21
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
@OlegDokuka
Copy link
Contributor Author

@simonbasle done

@simonbasle simonbasle added this to the 3.4.20 milestone Jun 17, 2022
@simonbasle simonbasle added type/enhancement A general enhancement area/performance This belongs to the performance theme labels Jun 17, 2022
@simonbasle simonbasle changed the title introduces state logger system Add StateLogger for structured logging of state machines Jun 17, 2022
@simonbasle simonbasle merged commit baf49c9 into 3.4.x Jun 17, 2022
@reactorbot
Copy link

@simonbasle this PR seems to have been merged on a maintenance branch, please ensure the change is merge-forwarded to intermediate maintenance branches and up to main 🙇

@simonbasle simonbasle deleted the feature/state-logger-3-4-x branch June 17, 2022 14:52
simonbasle added a commit that referenced this pull request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/performance This belongs to the performance theme type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants