github clemcer/loggifly v1.1.0

latest release: v1.1.1
12 days ago

🚀 v1.1.0

Inspired by the (really unexpected) amount of attention my little program got, I refactored much of the code, improved a lot of the existing logic and mechanisms, fixed lots of bugs and added one new feature.

Changed Variables:

  • disable_restartreload_config
    (env: DISABLE_RESTARTRELOAD_CONFIG)
    Previously, if you wanted to disable restarting the whole container on changes in the config.yaml you had to set disable_restart to True. Now the config reload is no longer done via a restart and happens while the program is running. If you still want to disable it again you have to set reload_config to False.
  • disable_restart_messagedisable_config_reload_message
    (env: DISABLE_RESTART_MESSAGEDISABLE_CONFIG_RELOAD_MESSAGE)

New variables:

  • action_keywords (config.yaml only)
  • action_cooldown (_env_: ACTION_COOLDOWN )
    See New Feature.

New Feature:

  • Keyword-triggered stops/restarts (#12)
    Add action_keywords to your config.yaml and specify stop: or restart: before every keyword (see README for more details).

Other major improvements:

  • Cleaner and faster shutdown
  • Reloading the config is now much smoother and done while the program is running, rather than being done by restarting the whole container. This causes the reload to be almost instantaneously.
  • Better Docker socket proxy support (#10) (still unofficial)
    When using a socket proxy the log stream connection drops every ~10 minutes. I wasn't able to fix the actual reason for the disconnects but I implemented a reconnect mechanism. Although it seems to work fine I am still not 100% sure that there are no remaining bugs when using a proxy so using one is not officially recommended (yet).

Fixes and small improvements::

  • Fix: Empty config file error (#11)
  • improved logging
  • improved error handling on config load

... lots of other fixes and improvements (too much code refactoring and little changes to list or remember every little thing)

Next up:

  • remote hosts
  • docker swarm support

The next bigger update might take a while but if anybody can't wait for remote hosts or docker swarm support contributions are welcome!

Full Changelog: v1.0.2...v1.1.0

Don't miss a new loggifly release

NewReleases is sending notifications on new releases.