/TimeStamp

A cross-platform .NET CLI utility that adds (colored) Timestamps to each line of Text. It can also log text to a file.

Primary LanguageC#MIT LicenseMIT

TimeStamp

A cross-platform .NET 6 CLI utility that adds (colored) Timestamps to each line of Text.

NOTE: Only Win-x64 builds are reasonably well tested.

HelpScreen

Features:

  • local or UTC timezone selectable.
  • 3 color modes: none, legacy, ANSI (full RGB)
  • no installation, no dependencies.
  • can write to a log file.
  • detailed help and example included.
  • tab-autocomplete available for options (requires dotnet complete, not for all shells.)

Known issues:

  • if TimeStamp receives text from another program (via pipe | stdin) that uses ANSI-color itself, colors can get messed up in various ways. To minimize problems, TimeStamp should be run with the -c 2 option in this case.

Build:

Using Visual Studio 2019 is recommended (with c# / .Net 5+ SDK installed). The project uses NuGet Packages. To generate single-file executables, use .net 6.0 sdk to build. (tested with dotnet 6.0-pre-5)

Example:

dotnet publish --self-contained true --configuration Release --framework net6.0 --output .\net6.0-linux-x64 --runtime linux-x64