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: Add Logger #265

Merged
merged 20 commits into from
May 17, 2024
Merged

Conversation

jonathanl-bq
Copy link

The Logger implementation here is based on the Python client's implementation, with some relatively small Java/JNI specific changes.

Copy link

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is red.
I think we need tests for this feature.

java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/src/lib.rs Show resolved Hide resolved
@Yury-Fridlyand
Copy link

We have few logging TODOs left in client code - can you complete them in scope of this PR?

jonathanl-bq and others added 4 commits May 13, 2024 10:33
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand
Copy link

CI hung. You need to rerun spotless though.

Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - a couple of comments

public final class Logger {
// TODO: consider lazy loading the glide_rs library
static {
System.loadLibrary("glide_rs");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this static loader - I don't think it doesn't anything here.

java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/client/src/main/java/glide/api/logging/Logger.java Outdated Show resolved Hide resolved
java/src/lib.rs Outdated Show resolved Hide resolved
jonathanl-bq and others added 5 commits May 16, 2024 11:39
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the extra static loadlibrary please

public final class Logger {
// TODO: consider lazy loading the glide_rs library
static {
System.loadLibrary("glide_rs");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this static loader - I don't think it doesn't anything here.

@jonathanl-bq jonathanl-bq merged commit 405f9a3 into java/integ_lotjonat_logging May 17, 2024
11 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the java/dev_lotjonat_logging branch May 17, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants