-
Notifications
You must be signed in to change notification settings - Fork 323
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
Replace custom Logger with slf4j's SocketAppenders and a single logging server #7253
Comments
Hubert Plociniczak reports a new STANDUP for yesterday (2023-07-27): Progress: Catching up after a break. Picked up where I left off with logging replacement, updating to latest develop. It should be finished by 2023-07-31. Next Day: Next day I will be working on the #7253 task. Continue with replacing our custom logging service with something off the shelf. |
Another advantage of using an off-the-shelf logging library is that the logs have, by default, some standard format which is recognizable by most of the log-viewer software, like lnav for example. Currently, our log files do not have such standard format, we always have to investigate the logs as text-only files. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-07-28): Progress: Investigating problems related to running basic projects (#7095). Turned out to be a common versioning mismatch between IDE and engine. Continued with replacing our own loggers with something off the shelf. It's pretty tightly integrated so will likely take more time than initially anticipated. It should be finished by 2023-07-31. Next Day: Next day I will be working on the #7253 task. Continue with refactoring our logging. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-07-31): Progress: Continue the effort of replacing our custom logging and version mismatch problems for certain users. This will take much longer to implement. It should be finished by 2023-07-31. Next Day: Next day I will be working on the #7253 task. Continue with refactoring our logging. |
Hubert Plociniczak reports a new 🔴 DELAY for yesterday (2023-08-01): Summary: There is 4 days delay in implementation of the Replace custom Logger with slf4j's SocketAppenders and a single logging server (#7253) task. Delay Cause: Existing logging implementation supported more use-cases than I initially anticiapted. Takes time to get through it. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-01): Progress: Starting to understand the reason for elaborate configuration system. Working towards supporting simple use-cases first. It should be finished by 2023-08-04. Next Day: Next day I will be working on the #7253 task. Continue with refactoring our logging. |
Hubert Plociniczak reports a new STANDUP for today (2023-08-03): Progress: Got simple forwarding working with a simple external socket logging server. Attempting to integrate when initializing individual services. It should be finished by 2023-08-04. Next Day: Next day I will be working on the #7253 task. Continue with refactoring our logging infra. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-02): Progress: (Previous status was for 08-02, this one is for 08-03). A simple server now collects logs from individual services and is able to store them in whatever appender we pick (e.g. file appender). Still struggling with getting truffle logger to also send logs to our centralized logger. It should be finished by 2023-08-04. Next Day: Next day I will be working on the #7253 task. Continue with refactoring our logging infra. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-04): Progress: (Late submission) Continued with integration of all logs. Finally managed also to accept and forward correctly Truffle logs. It should be finished by 2023-08-04. Next Day: Next day I will be working on the #7253 task. Prepare PR for review. |
Paweł Grabarz reports a new 🔴 DELAY for yesterday (2023-08-07): Summary: There is 6 days delay in implementation of the Replace custom Logger with slf4j's SocketAppenders and a single logging server (#7253) task. Delay Cause: More tweaks to logging configuration + slightly reduced hours recently. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-07): Progress: Preparing PR for review. Adding more tweaks to configure logging to whatever is needed. It should be finished by 2023-08-10. Next Day: Next day I will be working on the #7253 task. Continue on cleaning up the PR. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-09): Progress: More cleanups to logging configuration ( reduced hours ). It should be finished by 2023-08-10. Next Day: Next day I will be working on the #7253 task. Continue on cleaning up the PR and prepare for draft. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-10): Progress: Draft PR is up, still need to tweak it to add masking of logs and some fallback cases. Overall it seems to be working fine and is (almost) a 1:1 equivalent of what we had. It should be finished by 2023-08-10. Next Day: Next day I will be working on the #7253 task. Add missing configurations. |
Hubert Plociniczak reports a new 🔴 DELAY for the provided date (2023-08-11): Summary: There is 5 days delay in implementation of the Replace custom Logger with slf4j's SocketAppenders and a single logging server (#7253) task. Delay Cause: I greatly underestimated how much time the task will take and how much I will be able to give it last week. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-11): Progress: Fixing native image build, fixing tests and providing the small missing bits. It should be finished by 2023-08-15. Next Day: Next day I will be working on the #7253 task. Finish fixing tests. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-14): Progress: Struggling with some test setup. Fixing them one by one. It should be finished by 2023-08-15. Next Day: Next day I will be working on the #7253 task. Continue with launcher tests. Seems to exercise some unknown case. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-15): Progress: Got all relevant tests to pass. Still not quite there yet with the functionality and not quite happy in how complex the implementation is. Will need another review. It should be finished by 2023-08-15. Next Day: Next day I will be working on the #7253 task. Looking into simplfying the implementation. |
Hubert Plociniczak reports a new 🔴 DELAY for yesterday (2023-08-16): Summary: There is 6 days delay in implementation of the Replace custom Logger with slf4j's SocketAppenders and a single logging server (#7253) task. Delay Cause: Not happy with the complexity of the proposed PR. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-16): Progress: Not particularly happy with the existing solution which too closely mimicks the existing implementation. Looking into alternatives - talking with Jaroslav about going all in with java util logging but I'm not convinced this is necessary or even possible. Started simplifications but not finished yet. It should be finished by 2023-08-21. Next Day: Next day I will be working on the #7253 task. Continue with simplification of the implementation. |
One thing to note:
and
I thought I broke that with my change but those are coming from the nightly. Notice how they do not respect the format of other logs because they are clearly formatted by the default non-enso loggers. This is because those messages are logged before logs are setup correctly. |
Usual problem of having uninitialized objects in the system - they are pathological liars. LogManager offers some properties to allow one to configure everything before first |
It's not so easy in this case, I'm afraid. That class discovers the root where the log files should be placed (dependent on the distribution) so it's a catch-22. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-17): Progress: Good progress on simplification. Managed to remove all logback configs and replace them by code. Now reading all logging configs from application.conf again. It should be finished by 2023-08-21. Next Day: Next day I will be working on the #7253 task. Finish simplicication and update PR. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-18): Progress: Cleaned up the PR. Shows the simplification I was aiming for. Still some documentation is missing. It should be finished by 2023-08-21. Next Day: Next day I will be working on the #7253 task. Fill in the missing bits in documentation. |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-08-21): Progress: More documentation, getting rid of last logback config. It should be finished by 2023-08-21. Next Day: Next day I will be working on the #7253 task. Documentation and testing |
This change replaces Enso's custom logger with an existing, mostly off the shelf logging implementation. The change attempts to provide a 1:1 replacement for the existing solution while requiring only a minimal logic for the initialization. Loggers are configured completely via `logging-server` section in `application.conf` HOCON file, all initial logback configuration has been removed. This opens up a lot of interesting opportunities because we can benefit from all the well maintained slf4j implementations without being to them in terms of functionality. Most important differences have been outlined in `docs/infrastructure/logging.md`. # Important Notes Addresses: - #7253 - #6739
Hubert Plociniczak reports a new 🔴 DELAY for the provided date (2023-09-01): Summary: There is 11 days delay in implementation of the Replace custom Logger with slf4j's SocketAppenders and a single logging server (#7253) task. Delay Cause: Parked the ticket until PR feedback was gathered and moved on to working on #7017 in the meantime. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-09-01): Progress: Addressing more logging feedback. Encountered some problems with building native images. Tested extensively with sentry.io It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7698 task. Look into spurious GraalVM downloads |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-08): Progress: (late submission) Continued refactoring of logging. It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7253 task. Continue the integration. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-22): Progress: (late submission) Investigating #7624, continued work on logging. It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7253 task. Continue the integration. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-23): Progress: (late submission) Separating API from implementation via reflection/config loading in logging PR. It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7253 task. Continue the integration. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-24): Progress: (late submission) Adding documentation and examples, simplfying some implementation. It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7253 task. Continue the integration. |
Hubert Plociniczak reports a new STANDUP for the provided date (2023-08-25): Progress: (late submission) More documentation and testing. Preparing for final review. It should be finished by 2023-09-01. Next Day: Next day I will be working on the #7017 task. Pick up refactoring work. |
We currently have a custom logger implementation that is being used in every backend service. The primarily reason for that was that we could collect all logs into a single file.
While the service has worked without any problems, further maintenance and adding new features will be problematic.
The text was updated successfully, but these errors were encountered: