Skip to content

Log time range extraction tool. Get the log content for a specific point in time plus/minus a certain duration window. Configuration timestamp format.

Notifications You must be signed in to change notification settings

cdbennett/logcut

Repository files navigation

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

About

Log time range extraction tool. Get the log content for a specific point in time plus/minus a certain duration window. Configuration timestamp format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages