logcut - extract a portion of a log file around a specific timestamp Development Preparation Set up a Python venv virtual environment: python3 -m venv build/env Prepare for development: build/env/bin/python setup.py develop Running unit tests build/env/bin/python setup.py test Executing the program $ logcut --time '2022-10-11 11:22:33' --context=4 filename.log