Skip to content

Removing iree/base/logging.h. - #9605

Merged
benvanik merged 1 commit into
mainfrom
benvanik-2843
Jun 24, 2022
Merged

benvanik merged 1 commit into
mainfrom
benvanik-2843

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

Besides a few random spots it cropped up in the runtime/python bindings the C++ logging code was only used in tests and tools where the features provided for verbosity control aren't meaningful. Instead of porting it all to C I've just gone and deleted it - fprintf(stderr)/std::cerr is almost always what's wanted instead and is much simpler to understand. As a library we try not to have any log spew, tests can use gtest logging, and the tools are almost all LLVM-based and use the logging functionality already available in that world.

Fixes #2843.

@benvanik benvanik added runtime/tools IREE's runtime tooling (iree-run-module, iree-benchmark-module, etc) cleanup 🧹 labels Jun 23, 2022
@benvanik
benvanik marked this pull request as ready for review June 23, 2022 23:28
@benvanik
benvanik enabled auto-merge (squash) June 23, 2022 23:28
Besides a few random spots it cropped up in the runtime/python bindings
the C++ logging code was only used in tests and tools where the
features provided for verbosity control aren't meaningful. Instead of
porting it all to C I've just gone and deleted it -
`fprintf(stderr)`/`std::cerr` is almost always what's wanted instead
and is much simpler to understand. As a library we try not to have any
log spew, tests can use gtest logging, and the tools are almost all
LLVM-based and use the logging functionality already available in
that world.

Fixes #2843.

@stellaraccident stellaraccident left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

But I was just going to log a message like "this binary compiled with nccl support" :)

@benvanik
benvanik merged commit 91c75fb into main Jun 24, 2022
@benvanik
benvanik deleted the benvanik-2843 branch June 24, 2022 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 runtime/tools IREE's runtime tooling (iree-run-module, iree-benchmark-module, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace logging with a C log sink API

2 participants