-
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
Replace the plugin logging system by the provided by the platform #6161
Conversation
- Enhance the logging messages - Minor enhancements
- Replace the logging services - Move services to core plugin - CacheAPIUserAllowRunAs - ManageHosts - ServerAPIClient (aka api-interceptor) - ServerAPIHostEntries (aka ) - UpdateConfigurationFile - UpdateRegistry - Adapt the usage of services in the main and check updates plugin from core plugin - Remove plugin logger from main and core plugins - Remove API endpoint - GET /utils/logs/ui - Remove unused code - Adapt the test suites
…to enhancement/6137-adapt-logging-method
…to enhancement/6137-adapt-logging-method
- Remove GET /utils/logs endpoint - Remove related tests - Remove App logs application
Logs starting appTestLegend: UI
Details 🟢 The logs.level setting should not appear in the App settings applicationChrome - 🟢 Firefox - ⚫ Safari - ⚫ Backend
Details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
|
|
TestLegend: UI
Details 🟢 The logs.level setting should not appear in the App settings applicationChrome - 🟢 Firefox - ⚫ Safari - ⚫ Backend
Details ⚫ Logs of statistics task should use the platform logging⚫ Logs of queue task should use the platform logging⚫ Logs of migration task should use the platform logging⚫ Logs of check updates plugin should use the platform logging⚫ Logs of core plugin should use the platform logging |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This pull request replaces the custom logging service with the one provided by the platform.
Changes:
wazuhCore
plugin as dependency ofmain
logs.level
settingwinston
dependency used by the custom loggeryarn.lock
files were updatedApp logs
applicationIssues Resolved
#6137
Evidence
Logs starting the platform:
Test
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ The logs.level setting should not appear in the App settings application
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ The App logs application should not appear in the side bar menu
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Backend
Details
⚫ The default wazuh.yml should not contain the logs.level setting
⚫ Logs of monitoring task should use the platform logging
⚫ Logs of statistics task should use the platform logging
⚫ Logs of initialize task should use the platform logging
⚫ Logs of queue task should use the platform logging
⚫ Logs of migration task should use the platform logging
⚫ Logs of check updates plugin should use the platform logging
⚫ Logs of core plugin should use the platform logging
Check List
yarn test:jest