Skip to content

Instantly share code, notes, and snippets.

@bakins
Created August 1, 2013 10:40
Show Gist options
  • Select an option

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

Select an option

Save bakins/6130279 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 serevr stuff here...
# "files": [
# {
# "paths": [ "-" ],
# "fields": { "type": "stdin" }
# }
# ]
# }
#
exec 2>&1
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