stdin-tagger
just decorate stdin with current timestamp and optional tag.
If you like this tool, just say thanks.
1.1.0
stdin-tagger
works with Python 2.7 and 3.3+.
Some examples:
# decorate with default timestamp
% echo something | stdin-tagger
2019-05-01 09:42:11.141874 something
# decorate with other timestamp format
% echo something | stdin-tagger --timestamp-format '%Y%m%d%H%M%S'
20190501094333 something
# decorate with other timestamp format and UTC timezone
% echo something | stdin-tagger --timestamp-format '%Y%m%d%H%M%S' --timezone utc
20190501074610 something
# add additional tag right after timestamp
% echo something | stdin-tagger --additional-tag '[some tag]'
2019-05-01 09:49:58.775573 [some tag] something
- Using PIP
stdin-tagger
should work on any platform where Python
is available, it means Linux, Windows, MacOS X etc.
Simplest way is to use Python's built-in package system:
pip install stdin-tagger
-
Using pipsi
pipsi install stdin-tagger
Voila!
Marcin Sztolcman marcin@urzenia.net
If you like or dislike this software, please do not hesitate to tell me about this me via email (marcin@urzenia.net).
If you find bug or have an idea to enhance this tool, please use GitHub's issues.
- first public version