-
Notifications
You must be signed in to change notification settings - Fork 186
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
Adapt the logging method of the plugins to the provided by the platform #6137
Adapt the logging method of the plugins to the provided by the platform #6137
Comments
Design - BackendTasksThe backend tasks already receive the logger through parameters. We will remove the old logging system in favor of the platform. EndpointsMost of the API endpoints of the plugins use the old logging method that we want to remove. This method defines tags to identify the related controllers of endpoints. We will replace it with an instance whose tag is related to the method and endpoint path. ServicesSome current services use the current logging service through an import. Because the logging method of the platform is available in runtime, the usage of the logging depends on this. We will rework the services to initialize with the logger of the platform. We will move these services to the core plugin and adapt the rest of the plugin to use this definition. This approach was discussed with @asteriscos in a meeting. |
Research the possibility to display the related logs on
|
Proposition - Remove the possibility to see the plugins logs through the UII was analyzing the utility of access to app logs and I consider these could be removed. The current functionality only reports the last 50 logs of the So, I was working on a patch to remove the Changes
@asteriscos and I had a meeting where we were talking about my proposition of removing the |
We have decided in a meeting to remove the ability to see the plugin logs through a specific application ( |
Description
As part of the issue that pretends to remove the stateful of the Wazuh dashboard plugins, we need to adapt the logging of the plugins to use the method provided by the platform.
Tasks:
winston
plugin dependency because of unused anymorelogs.level
settingApp logs
application should be removedThe text was updated successfully, but these errors were encountered: