-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #36 | Add systemd config #39
Conversation
@@ -73,6 +73,7 @@ consul-tag | `marathon` | Common tag name added to every | |||
listen | `:4000` | Accept connections at this address | |||
log-level | `info` | Log level: panic, fatal, error, warn, info, or debug | |||
log-format | `text` | Log format: JSON, text | |||
log-format | | Save logs to file (e.g.: `/var/log/marathon-consul.log`). If empty logs are published to STDERR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log-format -> log-file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
👍 |
45ebb65
to
91f2bca
Compare
@@ -37,6 +37,7 @@ | |||
}, | |||
"Log": { | |||
"Level": "info", | |||
"Format": "text" | |||
"Format": "text", | |||
"File": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should set something like /var/log/marathon-consul.log
as default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default it's stderr, it could not work with systemd but works perfect with upstart
91f2bca
to
37b5a60
Compare
systemd doesn't forward output to file so I added config option to write logs to file.