-
Notifications
You must be signed in to change notification settings - Fork 197
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
EspLogger is not extensible #476
Comments
Help me understand how a (And btw the |
Rust is not OOP, but composition is still possible. In the example I put above, let's suppose that the I understand the pattern of desiring a singleton, but enforcing that pattern is already handled by the |
OK, so your idea would be:
BTW: You do realize this way you can only grab the logs originating from rust code. Logs originating from the C code you need to grab with a different facility, which is much more hairy (vsprintf and stuff like that). |
Yes that's exactly what my plan is. I am aware about those other logs, I have a separate additional use of |
Would be great if you could share your code that deals with the vprintf blackmagic from Rust (if you do it from Rust and with pure rust (i.e. no C stubs and such)). I remember a user was fighting this for a long time without declaring success. We might include such an utility in |
Closing as fixed by 11d9d0a But if you could really share the vsprintf stuff, that would be helpful. |
I would like to be able to extend the functionality of
EspLogger
for my own custom purposes like soHowever as of this commit, I'm no longer able to do so because the public struct now has a private constructor. Could we maybe throw a cheeky "pub" in front of that
const fn new
line?The text was updated successfully, but these errors were encountered: