Skip to content

v1.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Mar 09:59
· 6 commits to master since this release

Changes

demo.mp4

Logging to file

gleichzeitig now supports logging its output into a file as well as into stdout using io.MultiWriter. By default, the config key value pair log_file is set to gleich.log, removing the key or assigning an empty string as its value disables logging to a file.

Old default configuration file:

{
  "color_output": true,
  "commands": [
    {
      "cwd": "",
      "cmd": "echo 'Hello World from command 1!'"
    },
    {
      "cwd": "",
      "cmd": "echo 'Hello World from command 2!'"
    }
  ],
  "log_file": "",
  "surpress_output": false
}

New default configuration file:

{
  "color_output": true,
  "commands": [
    {
      "cwd": "",
      "cmd": "echo 'Hello World from command 1!'"
    },
    {
      "cwd": "",
      "cmd": "echo 'Hello World from command 2!'"
    }
  ],
  "log_file": "gleich.log",
  "surpress_output": false
}

More verbose logging output

gleichzeitig now shows the user where it sources its configuration from, if it found a value for certain configuration options, and which file it logs to:

image

I also made some changes to the order of the done, took x prints to make sure it prints after the command is fully finished:

image

Changelog

  • af5d934 doc: add showcase video
  • 9f1f505 feat: default value for 'log_file'
  • 5bc8a59 feat: implement logging to file