-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add ability to specify appName on per log message #3
Comments
Yes it's possible to implement. There is only one problem with Anyway in one of my project I call IPAddress ip = WiFi.localIP();
syslog.appName("network").logf(LOG_INFO, "Assigned %s.local [%u.%u.%u.%u]", DEVICE_HOSTNAME, ip[0], ip[1], ip[2], ip[3]); Only caveats is that |
yes. i realised that. and there is no function to fetch it, set the new one, then set it back to the old one! |
i wonder what the most elegant solution would be. Think its worth having! |
I've come up with a method that might work. I'm going to try an roll it into my own syslog attempt for my ESPManager software. I've written a string class with derived versions
Using the right move semantics makes it efficient... |
I've use some of your code to write my own syslog client, mainly the log mask stuff and message generation. I've given you credit for it at the top of the |
I closed this by accident. sorry. |
Hi,
use senario: I have several libraries running on the same ESP, doing a variety of things. With debugging enabled I'd like to be able to send debug messages from different bit of software on the same device. so the device name is the same, but the app name is different.
Would be great to have overloads to be able to specify the log level and app name for a message.
what do you think?
The text was updated successfully, but these errors were encountered: