Skip to content
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

[Java] Dynamic logging #1167

Merged
merged 12 commits into from Apr 17, 2021
Merged

[Java] Dynamic logging #1167

merged 12 commits into from Apr 17, 2021

Conversation

vyazelenko
Copy link
Contributor

This PR adds scripts that allow enabling and disabling Agent-based logging of Aeron components.

The general form of the command is:

dynamic-logging <pid> <command> [config files...]

where <pid> is the JVM process ID and <command> is either start or stop. One can also pass an optional list of config property files or use JVM_OPTS env var instead.

Here is an example of enabling logging for the admin events of media driver process 1111 on Linux:

JVM_OPTS="-Daeron.event.log=admin" ./dynamic-logging 1111 start

And on Windows:

set "JVM_OPTS=-Daeron.event.log=admin" && dynamic-logging 1111 start

By default the log will be written to the stdout of the target process. Logging to a file can be specified via the aeron.event.log.filename property.

@mjpt777 mjpt777 merged commit a2f7df5 into real-logic:master Apr 17, 2021
mjpt777 added a commit that referenced this pull request Apr 17, 2021
@vyazelenko vyazelenko deleted the dynamic-logging branch April 20, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants