Tomer
c6ca472ca1
fix: Improve performance when logging is disabled ( #23893 )
...
* Improve log performance
* Bug fix
* Revert sample configuration
* Align package versions
* Revert dependecies version to allow testing
* Update package-lock.json
* Fix prettier issue
* Coverage to 100%
* Fix CR comments
* remove uneeded changes
* Make the same perf optimization to the MQTT messages
* Fix MQTT tests
* prettier fix
* Allow easy mocking of stub logger callTransports function to receive the actual message
* cleanup leftover
* Fix prettier issues
* Finalize logger mock structure and add few lambda log calls
* fix prettier issue
* Run prettier
* Revert "fix prettier issue"
This reverts commit b409d538e3
.
* Update zigbee.ts
Fix prettier issue
* Fix test issues
* Revert await removal
2024-09-12 20:33:05 +02:00
Koen Kanters
30227a13ae
chore: Implement prettier ( #23153 )
...
* chore: Implement prettier
* Run prettier
* fix lint
* process feedback
* process feedback
2024-06-24 18:58:47 +00:00
ghoz
881037c371
feat: Allow hierarchical filtering of logger namespaces ( #22859 )
...
* POC: Allow hierarchical filtering of logger namespaces
matches the closes defined namespace log level:
advanced:
log_namespaced_levels:
'zh:zstack:unpi': info
would also apply to zh:zstack:unpi:write and zh:zstack:unpi:parse
To limit runtime penalty uses the namespacedLevels as a lazy cache
* Move namespace levels to separate cache
Avoid poluting the namespacedLevel in the config / UI
Add cache reset on config time log level change
* Actually use the cache
* Optimize/Cleanup
* Add some namespace hierarchy filter tests
* More coverage.
* Fix #22935
---------
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com>
2024-06-04 20:17:35 +02:00
Nerivec
2eec6a4d26
fix: Add namespace-specific levels support to logger ( #22619 )
...
* Add namespaced levels for logger. Add NS to mqtt. Deprecate 'warn'.
* Improve setting validation.
* Fix setting through frontend
* Support reload + frontend improvements
* update description
* remove requiresRestart
* Fix tests.
* Fix namespaced logging at lower levels. Add better tests.
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2024-05-19 15:47:40 +02:00
Nerivec
d26ccaed65
fix: Fix logger crashing on restart ( #22565 )
2024-05-09 21:42:28 +02:00
Nerivec
eb49f523bf
fix: Add settings for finer control over debug log level ( #22426 )
...
* Add settings for finer control over debug log level.
* Updates from feedback.
2024-05-05 21:52:26 +02:00
Koen Kanters
f774753213
fix(ignore): update zigbee-herdsman-converters to 19.19.1 ( #22171 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.19.1
* fix(configure): pass definition to function call (#22154 )
* Pass definition to configure
* fix test
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com>
Co-authored-by: Sergei Salimov <32013287+mrskycriper@users.noreply.github.com>
2024-04-10 22:02:12 +02:00
Nerivec
3c1a4afcb7
fix: Convert logger into a class ( #22129 )
2024-04-07 20:52:55 +02:00
Koen Kanters
002050f35b
fix: Reduce MQTT publishing by excluding debug logging from bridge/logging
( #22066 )
...
* fix: Reduce MQTT publishing by excluding debug logging from `bridge/logging`
* fix tests
* fix
2024-04-06 12:44:43 +02:00
Koen Kanters
cdd6fb0864
fix(ignore): fix 73566df
2024-04-02 22:39:33 +02:00
Nerivec
73566dff98
feat: Unified logging across z2m/zh/zhc ( #21984 )
...
* Unified logging across z2m/zh/zhc
* Updates
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2024-04-02 22:33:51 +02:00
github-actions[bot]
b3c886638a
Update dependencies ( #17354 )
...
* Update dependencies
* Fix tests
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2023-04-16 08:56:31 +02:00
Koen Kanters
68035a1256
Fix restart not working ( #12629 )
2022-05-29 08:15:47 +00:00
Koen Kanters
045ee573a0
Final TypeScript refactor ( #8859 )
...
* Update
* Updates
* More refactoringzzz
* Bindoo
* Loadz of typescripting
* Logga
* Updates
* Updates
* Updates
* Updates
* cleanup
* updates
* Fix coverage
* Fixes
* Updates
* Updates
2021-10-02 10:09:38 +02:00
daxy01
edc18e3376
Add log_symlink_current option ( #7166 )
...
* Update logger.js
Adding a symlink from "log/<timestamp>" to "log/current" to be able to always view the last logfile using "log/current/log.txt".
* Update logger.js
* Update logger.js
Create directory first to prevent startup failure
* Update logger.js
Fixing check on startup
* Update settings.js
* Update logger.js
* Update settings.schema.json
* Update bridge.test.js
* Update logger.test.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-04-25 19:21:38 +02:00
Koen Kanters
00c2894bb4
Reread settings on restart. https://github.com/Koenkk/zigbee2mqtt/discussions/6628
2021-03-09 19:50:05 +01:00
Koen Kanters
c67de5eb28
Fix nothing logged in frontend when log_level warn is set. https://github.com/Koenkk/zigbee2mqtt/issues/5812
2021-01-19 18:14:40 +01:00
Koen Kanters
d1a1035e43
Fix nothing logged when log_level set to warn. https://github.com/Koenkk/zigbee2mqtt/issues/5812
2021-01-18 18:31:47 +01:00
Koen Kanters
3a1f697d93
Don't log when including logger.js
2020-10-07 17:15:46 +02:00
Koen Kanters
903cec5760
Allow to disable log rotation. #3280
2020-04-04 19:46:43 +02:00
Wilmar den Ouden
694c45fd96
Make logging transports configurable ( #2231 )
...
* feat: Make logging optional
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* feat: be more verbose about what logging is enabled
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* feat: adds tests
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* Updates.
* Updates
* fix tests.
* Remove onlythis.
* Remove another onlythis
* Improve test stability
* Remove another onlythis
2019-11-29 23:36:57 +01:00
Koen Kanters
42bc5f274b
Fix logger test writing to configuration.yaml.
2019-09-28 13:49:27 +02:00
Koen Kanters
34111159ae
Update Winston logger to 3.x
2019-09-25 10:55:50 +02:00
Koen Kanters
d83085ea7f
Zigbee-herdsman ( #1945 )
...
* Update zigbee-herdsman and zigbee-shepherd-converters.
* Force Aqara S2 Lock endvices (#1764 )
* Start on zigbee-herdsman controller refactor.
* More updates.
* Cleanup zapp.
* updates.
* Propagate adapter disconnected event.
* Updates.
* Initial refactor to zigbee-herdsman.
* Refactor deviceReceive to zigbee-herdsman.
* Rename
* Refactor deviceConfigure.
* Finish bridge config.
* Refactor availability.
* Active homeassistant extension and more refactors.
* Refactor groups.
* Enable soft reset.
* Activate group membership
* Start on tests.
* Enable reporting.
* Add more controller tests.
* Add more tests
* Fix linting error.
* Data en deviceReceive tests.
* Move to zigbee-herdsman-converters.
* More device publish tests.
* Cleanup dependencies.
* Bring device publish coverage to 100.
* Bring home assistant test coverage to 100.
* Device configure tests.
* Attempt to fix tests.
* Another attempt.
* Another one.
* Another one.
* Another.
* Add wait.
* Longer wait.
* Debug.
* Update dependencies.
* Another.
* Begin on availability tests.
* Improve availability tests.
* Complete deviceAvailability tests.
* Device bind tests.
* More tests.
* Begin networkmap refactors.
* start on networkmap tests.
* Network map tests.
* Add utils tests.
* Logger tests.
* Settings and logger tests.
* Ignore some stuff for coverage and add todos.
* Add remaining missing tests.
* Enforce 100% test coverage.
* Start on groups test and refactor entityPublish to resolveEntity
* Remove joinPathStorage, not used anymore as group information is stored into zigbee-herdsman database.
* Fix linting issues.
* Improve tests.
* Add groups.
* fix group membership.
* Group: log names.
* Convert MQTT message to string by default.
* Fix group name.
* Updates.
* Revert configuration.yaml.
* Add new line.
* Fixes.
* Updates.
* Fix tests.
* Ignore soft reset extension.
2019-09-09 19:48:09 +02:00