Skip to content

Instantly share code, notes, and snippets.

@bakins
Last active December 20, 2015 12:19
Show Gist options
  • Select an option

  • Save bakins/6130281 to your computer and use it in GitHub Desktop.

Select an option

Save bakins/6130281 to your computer and use it in GitHub Desktop.
doodling on "container" log forwarding.
#!/bin/bash
# should be /etc/sv/my-awesome-containerized-app/log/run
# create a lumberjack ( https://github.com/jordansissel/lumberjack ) config like
#
# {
# ..put server stuff here...
# "files": [
# {
# "paths": [ "-" ],
# "fields": { "type": "stdin" }
# }
# ]
# }
#
exec lumberjack -config /path/to/my/config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment