Skip to main content

logmux

Logmux tails multiple log files, labels their lines and outputs everything in one stream - Much like docker-compose, but simply for local log files!

Installation

pip install logmux

Usage

logmux first.log second.log test/third.log

This will tail all three log files. New lines will be prefixed with the name of the log file it came from, e.g. first: for the first log file and third: for the last one.

You can customize the labels by providing them as a query parameter for each file:

logmux "first.log?label=custom" second.log test/third.log

This will prefix all lines from the first file with custom: . You'll need to quote the argument like in this example to make sure that your shell is not going to split it.

It's also possible to set the color of the label:

logmux "first.log?label=custom&color=blue" "second.log?color=red" test/third.log

Similar solutions

In no particular order:

  • MultiTail uses ncurses to tail multiple log files in one or more windows. Logmux takes a more simple approach by just printing to stdout.

Metadata

Release files for logmux 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logmux 0.1.1
File Size Uploaded
logmux-0.1.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logmux 0.1.1
File Interpreter ABI Platform
logmux-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / logmux-0.1.1.tar.gz

Download URL logmux-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d219c4d81f40d0a34cff74830e2e7e96eeda518018d30a69465baccb1a626886
BLAKE2b-256 checksum
How to use checksums
7de8eda193f4d0f3cb967f38420d4308c603eed51f7e659bee207058877aef36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release files / logmux-0.1.1-py3-none-any.whl

Download URL logmux-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a237a073d5038f3b8c5509e2df2271547ebc24f7fbeecc61e54e9489fc990838
BLAKE2b-256 checksum
How to use checksums
6d68ab307ac3d075992b1e43eacb94120702641f4876a0906b73d61ed8c1ef3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page