-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow debug logs into a writtable location #506
Comments
@jonesbusy how about if we use a hybrid approach like this Use This will also work for kubernetes by setting the |
Sure, any solution is better than now (not configurable, logs in the same directory). I think we should have something like Similar to the default cache on I didn't know logback support environment variables inside logback.xml |
For |
For sure no. |
I see, so how about keep default value of |
I think something like:
could work. |
Perhaps (if we can make it work with logback) move the logs to Since the sources are stored on Would be possible by changing the +return Plugin.build(marker.getName()).getLocalRepository().toAbsolutePath().toAbsolutePath();
-return marker.getName(); But this would not work as is because we only get the name of the plugin as "marker". And we will miss all the Some ideas public Marker getMarker() {
+ return MarkerFactory.getMarker(getLocalRepository().resolve("logs").resolve("invoker.logs").toAbsolutePath().toString());
- return MarkerFactory.getMarker(name);
}
So feel free to explore the best and possible solution |
Yes, that's a good idea! |
@jonesbusy can you help out a little. The JVM is unable to find the java.lang.instrument.Instrumentation class, which is required by Mockito's inline mock maker Ran `java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null) It appears as if you are running an incomplete JVM installation that might not support all tooling APIs at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.(InlineDelegateByteBuddyMockMaker.java:254) |
This look specific to your VS code ? mvn clean install works right ? If yes it might be an issue with your IDE configuration. I'm not using VSCode for Java development so not sure what would be the issue. |
yes mvn clean install is working fine, are you using Intellij Idea? |
Yes the community edition. Test work fine running them from IDE |
What feature do you want to see added?
Right now log files are always created into the
logs
directory where the CLI is runIs not convenient when running the CLI tool on a non-writtable location (like Kubernetes)
In addition when distributing the CLI (via Homebrew for example) it would be nice to write logs to a standard location (like /var/log)
Perhaps this could be configurable via an env var
Upstream changes
No response
Are you interested in contributing this feature?
No response
The text was updated successfully, but these errors were encountered: