-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
# Tests | ||
# mesos-journald-container-logger | ||
|
||
This is a container logger module for [Mesos](http://mesos.apache.org/) | ||
that redirects container logs to the systemd journal, or "journald". | ||
|
||
Messages written to the container's standard output are logged using the | ||
priority level `LOG_INFO`, and standard error messages are logged using | ||
the priority level `LOG_ERR`. | ||
|
||
If the environment variable `MESOS_TASK_ID` is defined its value will be | ||
used as the program identifier in the log messages. This is mostly useful | ||
if Marathon is used to launch the tasks. | ||
|
||
## Tests | ||
|
||
You (or the user running the tests) need to to have access to the systemd | ||
journal. Access is usually granted to members of the "systemd-journal" group. | ||
journal, or they will fail. Access is usually granted to members of the | ||
`systemd-journal` group. To add jenkins to this group, for example: | ||
|
||
$ usermod -a -G systemd-journal jenkins | ||
|
||
Normal users may need to login again, and you may need to restart services | ||
such as jenkins, for the group changes to be applied. |