Skip to content

Log messages are not redirected to a provided consumer #101

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

Open
karambaso opened this issue Mar 22, 2025 · 1 comment
Open

Log messages are not redirected to a provided consumer #101

karambaso opened this issue Mar 22, 2025 · 1 comment

Comments

@karambaso
Copy link

If to set logger using LlamaModel.setLogger then logs are printed to the std out instead of the provided consumer.

It seems that logging was redefined in Utils.cpp which includes log.h and uses a template that never calls the consumer.

To reproduce the bug it is enough just to call LlamaModel.setLogger with LogFormat.TEXT and a consumer that prints to the std out with some prefix.

@vaiju1981
Copy link
Contributor

I have renabled the tests for logging in the PR ( #100), once merged we can revisit this.

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

No branches or pull requests

2 participants