xushiyan commented on code in PR #570:
URL: https://github.com/apache/hudi-rs/pull/570#discussion_r3013081250


##########
cpp/src/lib.rs:
##########
@@ -23,6 +23,19 @@ use cxx::{CxxString, CxxVector};
 use hudi::file_group::FileGroup;
 use hudi::file_group::file_slice::FileSlice;
 use hudi::file_group::reader::FileGroupReader;
+use std::sync::OnceLock;
+
+static LOGGER: OnceLock<()> = OnceLock::new();
+
+/// Initialize env_logger exactly once for the lifetime of the loaded shared 
library.
+///
+/// Reads RUST_LOG from the environment at the time the first FileGroupReader 
is created.
+/// Example: RUST_LOG=hudi_core=debug enables all hudi-core debug logs.

Review Comment:
   can we split the changes into separate PR pls? the title suggests it's about 
support "ordering fields" as alias, so let's separate out logger changes?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to