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 a custom logger to ramble #296

Merged
merged 7 commits into from
Oct 30, 2023

Conversation

douglasjacobsen
Copy link
Collaborator

This merge adds a custom logger to Ramble to handle the redirection of output to various log files.

It enables a hierarchy of log files, and messages can be printed to multiple of these in a single call. Additionally, it adds progress bars back into Ramble, and adds arguments to disable both the logger, and the progress bars.

@douglasjacobsen douglasjacobsen added the enhancement New feature or request label Oct 23, 2023
@douglasjacobsen douglasjacobsen force-pushed the custom_logger branch 5 times, most recently from 27b94e5 to 27b37f0 Compare October 24, 2023 20:18
Copy link
Collaborator

@dapomeroy dapomeroy left a comment

Choose a reason for hiding this comment

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

Overall this looks great! I have just a few questions to help me understand our style norms, and found a couple typos, but no real concerns. It might be faster just to talk through the style questions live tomorrow vs typing responses.

lib/ramble/ramble/appkit.py Show resolved Hide resolved
lib/ramble/ramble/application.py Outdated Show resolved Hide resolved
lib/ramble/ramble/application.py Outdated Show resolved Hide resolved
lib/ramble/ramble/cmd/__init__.py Outdated Show resolved Hide resolved
lib/ramble/ramble/cmd/config.py Outdated Show resolved Hide resolved
lib/ramble/ramble/fetch_strategy.py Outdated Show resolved Hide resolved
lib/ramble/ramble/pipeline.py Outdated Show resolved Hide resolved
lib/ramble/ramble/renderer.py Outdated Show resolved Hide resolved
lib/ramble/ramble/spack_runner.py Show resolved Hide resolved
lib/ramble/ramble/util/web.py Outdated Show resolved Hide resolved
rfbgo
rfbgo previously requested changes Oct 25, 2023
lib/ramble/ramble/application.py Outdated Show resolved Hide resolved
lib/ramble/ramble/util/logger.py Show resolved Hide resolved
This commit implements a custom logging wrapper (util/logger.py) for
ramble which wraps the llnl.util.tty behavior.

This primarily allows writing to multiple files with a single call, but
fixes some of our issues with the previous logger (namely hijacking
stdin).
@douglasjacobsen douglasjacobsen dismissed rfbgo’s stale review October 30, 2023 17:54

Requested changes were made.

@dapomeroy dapomeroy merged commit 44dd665 into GoogleCloudPlatform:develop Oct 30, 2023
@douglasjacobsen douglasjacobsen deleted the custom_logger branch October 30, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants