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

New Java LoggerFromOptions Logger implementation #13003

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alanpaxton
Copy link
Contributor

The LoggerFromOptions class is a Logger implementation which allows the placement of the logger outside the DB. Used as a logger for a ReadOnly DB on a readonly filesystem, for instance.

This is the Java manifestation of CreateLoggerFromOptions - created from a DBOptions.

@alanpaxton alanpaxton marked this pull request as draft September 9, 2024 16:31
@alanpaxton alanpaxton force-pushed the eb/missing-create-logger-from-options branch 2 times, most recently from c3d8c34 to d6ca2f7 Compare September 18, 2024 08:07
@alanpaxton alanpaxton force-pushed the eb/missing-create-logger-from-options branch from d6ca2f7 to f014680 Compare October 2, 2024 14:47
@alanpaxton alanpaxton marked this pull request as ready for review October 2, 2024 14:48
The LoggerFromOptions class is a Logger implementation which allows the placement of the logger outside the DB. Used as a logger for a ReadOnly DB on a readonly filesystem, for instance.

This is the Java manifestation of CreateLoggerFromOptions - created from a DBOptions.
- Use a static method CreateLoggerFromOptions to wrap the now private LoggerFromOptionsconstructor
- Class comment
- change names of internal methods for readability
Use standard macro for returning C++ pointer as Java
JNIEXPORT and JNICALL not necessary in the implementation part of JNI methods, just the (autogenerated) declarations
@alanpaxton alanpaxton force-pushed the eb/missing-create-logger-from-options branch from f9db2de to e3e4609 Compare November 19, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants