Skip to content

[BLAZE-1085] Make native log level configurable#1086

Merged
richox merged 1 commit intoapache:masterfrom
wForget:BLAZE-1085
Aug 2, 2025
Merged

[BLAZE-1085] Make native log level configurable#1086
richox merged 1 commit intoapache:masterfrom
wForget:BLAZE-1085

Conversation

@wForget
Copy link
Member

@wForget wForget commented Aug 1, 2025

Which issue does this PR close?

Closes #1085.

Rationale for this change

Currently, there is a lot of useless information in native info level log. I want to make the native log level configurable.

After this, test with log level conf:

image

info log level output:

------ initializing blaze native environment ------
initializing logging with level: info
(+0.000s) [INFO] (stage: 0, partition: 0, tid: 0) - initializing JNI bridge
(+0.000s) [INFO] (stage: 0, partition: 0, tid: 0) - Initializing JavaClasses...
(+0.007s) [INFO] (stage: 0, partition: 0, tid: 0) - Initializing JavaClasses finished
(+0.007s) [INFO] (stage: 0, partition: 0, tid: 0) - initializing datafusion session
(+0.007s) [INFO] (stage: 0, partition: 0, tid: 0) - mem manager initialized with total memory: 9.6 EiB
(+0.014s) [INFO] (stage: 1, partition: 0, tid: 1) - start executing plan:
ProjectExec [spark_ext_function_Sha256(spark_ext_function_StringConcat(#7@0, #8@1)) AS #2, spark_ext_function_Sha256(spark_ext_function_StringConcat(#7@0, #8@1)) AS #3, spark_ext_function_Sha224(spark_ext_function_StringConcat(#7@0, #8@1)) AS #4, spark_ext_function_Sha384(spark_ext_function_StringConcat(#7@0, #8@1)) AS #5, spark_ext_function_Sha512(spark_ext_function_StringConcat(#7@0, #8@1)) AS #6], schema=[#2:Utf8;N, #3:Utf8;N, #4:Utf8;N, #5:Utf8;N, #6:Utf8;N]
  RenameColumnsExec: ["#7", "#8"], schema=[#7:Utf8;N, #8:Utf8;N]
......

error log level output:

------ initializing blaze native environment ------
initializing logging with level: error

Process finished with exit code 0

What changes are included in this PR?

Are there any user-facing changes?

yes, add a new conf

@richox richox merged commit 2dbb6c4 into apache:master Aug 2, 2025
619 checks passed
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.

Make native log level configurable

2 participants