[WIP] First proof of concept for Nextflow logs #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Aim
Aim is to support log files from Nextflow - a workflow manager / analysis pipeline builder commonly used in bioinformatics research (eg. DNA sequencing and more). Every run produces very long and verbose
.nextflow.log
files which are great for debugging, but extremely difficult to read. Formatting would greatly help with this.Continuing our discussion on Discord, here are the results of my very quick and dirty play with Nextflow logs this evening.
How it looks
CleanShot.2024-03-12.at.23.42.21.mov
Reproducing locally
Example log file: .nextflow.log (renamed to make GitHub happy, typically called
.nextflow.log
, or.nextflow.log.6
etc.)Can generate yourself by running Nextflow:
Discussion
toolong
functionality, such as tailing, search, navigation etc.These logs have a few additional bits of complexity:
toolong
that we're looking at a Nextflow log file and only use that set of formatters for the rest of the session.Going forward
This PR is just my way of asking for advice. I'm curious to see whether you think that this could / should live within the
toolong
codebase still, or whether it should somehow extendtoolong
as a separate package / plugin. Or whether it should be destroyed with fire and never be spoken of again 🔥