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

Internal module logging #569

Merged
merged 15 commits into from
May 5, 2022
Merged

Internal module logging #569

merged 15 commits into from
May 5, 2022

Conversation

tomchop
Copy link
Collaborator

@tomchop tomchop commented Mar 29, 2022

This pull request enables modules to log stats that will later might be exported / logged by the main dfTimewolf process.

@tomchop tomchop marked this pull request as ready for review May 2, 2022 09:34
@tomchop tomchop requested a review from ramo-j May 2, 2022 09:34
dftimewolf/lib/state.py Outdated Show resolved Hide resolved

def ExportStats(self) -> None:
"""Exports collected stats if existing. Default behavior is to log."""
self.PrintStats()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a plan to extend this to publish stats to a file, or external service for collection?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes absolutely, and they should override this very ExportStats method

dftimewolf/lib/state.py Outdated Show resolved Hide resolved
@tomchop tomchop requested a review from ramo-j May 4, 2022 17:01
Copy link
Collaborator

@ramo-j ramo-j left a comment

Choose a reason for hiding this comment

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

LGTM

@tomchop tomchop merged commit a88d359 into log2timeline:main May 5, 2022
@tomchop tomchop deleted the module-logging branch May 5, 2022 06:19
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