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

[Question] Use a custom logging provider for PaddleInference #83

Open
aboccag opened this issue Feb 14, 2024 · 3 comments
Open

[Question] Use a custom logging provider for PaddleInference #83

aboccag opened this issue Feb 14, 2024 · 3 comments

Comments

@aboccag
Copy link

aboccag commented Feb 14, 2024

Hello,

First, thank you for your library and your great work!

I am using PaddleSharp in my project and I have activated the loggs with the boolean GLogEnabled It looks like it redirect the logs from PaddleInferenceC to the Console.Writeline / Standard output somehow. In my project I am using Serilog for logging. Is there any way to write an adapter for Serilog ?

Many thanks!

@n0099
Copy link
Contributor

n0099 commented Feb 14, 2024

As you guessed it's a C native method from PaddleInferernce to enable its logging towards stdout of the process, so no changes like logging to elsewhere can be made in .NET managed side.
It's still possible to filter logging from PaddleInferernce out of stdout by preventing any other echoing to stdout like Serilog, then redirect the stdout to somewhere like a file with >.

@aboccag
Copy link
Author

aboccag commented Feb 14, 2024

Alright thank you

@sdcb
Copy link
Owner

sdcb commented Apr 16, 2024

Tracked by this: PaddlePaddle/Paddle#62367

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

3 participants