-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Log with Logrus; allow for logger injection #528
Log with Logrus; allow for logger injection #528
Conversation
@ferventgeek please have a look here when you get a chance and let me know if this is what you have in mind or if you'd like to see further extension. Also: as we appear to have the same employer, feel free to get in touch IRL any time re Gobot. 😺 |
@deadprogram the thought occurs that we could go a step further and formalize a method of log support at either the driver or platform level. I've got a couple ideas around what that could look like. |
@deadprogram any thoughts on whether we should continue w/ merging here? I'll update to fix the deps conflict if so. I'd also like to squash merge this one if possible due to my own vain desire to keep some of my derping around from the log and reduce noise 😃 |
077b774
to
9ee6b8b
Compare
Codecov Report
@@ Coverage Diff @@
## dev #528 +/- ##
==========================================
- Coverage 51.49% 51.48% -0.02%
==========================================
Files 162 162
Lines 15536 15540 +4
==========================================
Hits 8001 8001
- Misses 7133 7137 +4
Partials 402 402
Continue to review full report at Codecov.
|
Closing. May re-open later. |
This is awesome, thanks for the update. Logging refactoring is always tricky- this will really help with IoT projects and random robot images with no serial connector. I'll have time to test in early January. |
The PR is closed now after being open for comment for 7 months. I’m not satisfied with the change as it stood anyway. May revisit at some point in the future. |
Ahh, well it happens. Would still like integrated exportable logs, but then again who doesn't. ;-) I'm all over the Arduino/ESP32 gizmo over the holiday anyway. ;-) |
So, what were you not satisfied with? Is there some sort of design goal we want to work torward with logging? I'm specifically interested in how we might want to handle telemetry data. I think that should be considered a seperate thread alongside logging. |
Fixes #508
What
log
package from std lib with LogrusRegisterLogger
functions toapi
andgobot
packagesWhy
RegisterLogger
function allows for injecting a common loggerQuestions
examples
directory alone on the theory that it's best to show only Gobot packages and stdlib there? I opted to change b/c of the injection behavior's availability, but could see an argument for keeping it pure stdlib.