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
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
4626d557d3
Fix log level in frontend not updating after setting log level. https://github.com/Koenkk/zigbee2mqtt/issues/5635
2021-01-08 21:47:05 +01:00
Koen Kanters
3a1f697d93
Don't log when including logger.js
2020-10-07 17:15:46 +02:00
Koen Kanters
9a6397fe75
Make Zigbee2MQTT naming consistent
2020-08-01 10:36:20 +02:00
Hamish Moffatt
f5e5c76ca9
output plain text to syslog ( #3985 )
...
* output plain text to syslog (#3984 )
* fix lint warnings
Co-authored-by: Hamish Moffatt <hamish@moffatt.id.au>
2020-07-27 22:22:02 +02:00
Koen Kanters
c6e76165ff
Always convert syslog type to string. https://github.com/Koenkk/zigbee2mqtt/issues/3725
2020-06-12 16:51:49 +02:00
Koen Kanters
7f68fd3fc4
Initial syslog logging. #3647
2020-06-03 20:44:11 +02:00
Koen Kanters
903cec5760
Allow to disable log rotation. #3280
2020-04-04 19:46:43 +02:00
svh1985
e473590dd9
Added log_file name setting ( #2894 )
...
* Added log_file name setting
Added log_file to schema while preserving the default log.txt setting.
Added option to logger to use the filename and support for the %timestamp% var.
* Update logger.js
Added the filename to the console/log output.
2020-02-05 19:37:13 +01:00
Koen Kanters
313edcc445
Keep latest log in log.txt (not in log1.txt, etc.). https://github.com/Koenkk/zigbee2mqtt/issues/2855
2020-01-31 23:13:15 +01:00
Koen Kanters
39ed95371e
Log when using non-valid log_level. #2706
2020-01-16 23:33:17 +01:00
Wilmar den Ouden
087d1b8761
fix: avoid creating the log/ directory when file not enabled ( #2516 )
...
Signed-off-by: wilmardo <info@wilmardenouden.nl>
2019-12-13 19:09:18 +01: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
Kryzek
878a88632b
Customizable timestamp ( #2357 )
...
* Customizable timestamp
Add a customizable timestamp
* Revert "Customizable timestamp"
This reverts commit 7ae06e8e2c
.
* Customizable timestamp
* Update settings.js
2019-11-17 21:29:53 +01:00
Koen Kanters
22c8f14659
Update herdsman and converters.
2019-11-17 21:22:24 +01:00
Koen Kanters
44db557a0c
Log in local timezone. https://github.com/Koenkk/zigbee2mqtt/issues/2341
2019-11-15 23:04:23 +01:00
Koen Kanters
ada9316148
birthtimeMS is not realiable on Linux leading to removal of latest instead of oldest log directory which makes the logging stop.
2019-10-21 18:11:16 +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
Koen Kanters
82dc8437a1
Get rid of logging during test cases.
2019-06-10 00:01:48 +02:00
Koen Kanters
70fbe714e3
Add trace logging and add trace logging to zigbeeQueue. https://github.com/Koenkk/zigbee2mqtt/issues/1566
2019-06-08 19:56:35 +02:00
Koen Kanters
e5ca977579
1.2.1
2019-03-09 21:40:09 +01:00
Koen Kanters
1e1e0e4ca9
Fix no console logging. #1218
2019-03-09 21:36:07 +01:00
qm3ster
a93838be15
codemod: object-shorthand
...
Also fixed `new (` and `formatter` by hand.
2019-03-09 16:30:05 +01:00
Unknown
2fd59cb7ef
Remove log_directory_timestamp option, implement default settings, no : in timestamp. #356 #381
2018-09-18 17:51:34 +02:00
Zhong Jianxin
60e72c612c
Allow no timestamp in log directory ( #356 )
...
* Allow no timestamp in log directory
* Update log_directory_timestamp option
2018-09-17 22:55:17 +02:00
Koenkk
197a3cdebc
Update log file extension.
2018-08-16 20:04:29 +02:00
tb-killa
c520985a4f
Implement cleanup-function for logfiles
2018-08-16 19:07:32 +02:00
tb-killa
931926cd96
add fs and bring in advanced logname with dateformat
2018-08-16 19:07:32 +02:00
tb-killa
427c99cd83
add moment to logger.js
2018-08-16 19:06:48 +02:00
Koenkk
21f047f4aa
Use localtimestamp for file logging. #289
2018-08-16 18:56:33 +02:00
tb-killa
08f64b96be
remove arrow separator
2018-08-13 19:21:55 +02:00
tb-killa
8411c0b30d
Change logger-formatter confirm to zigbee-shepherd debug
2018-08-13 19:21:55 +02:00
Koenkk
1f6f73e8d2
Allow to log to custom directory. #207 #182
2018-08-13 19:21:55 +02:00
Koenkk
ae9f071ffc
Update logger.js
2018-06-14 20:27:43 +02:00
Marius Ciotlos
7fe9d6731a
Force debug on logger if DEBUG is set
2018-06-14 20:09:43 +02:00
Marius Ciotlos
15fca170ad
Fixed travis error from lint
2018-06-14 20:09:43 +02:00
Marius Ciotlos
2071b0f69f
Added possibility to update log_level from configuration
2018-06-14 20:09:43 +02:00
Koenkk
c5cb60e998
Enforce code style. #45
2018-05-17 17:20:46 +02:00
Daniel Welch
03123fb783
configure datapath with env variable
2018-05-11 23:04:15 -04:00
Koenkk
8ad1d49870
Also log to file. #16
2018-05-04 23:01:02 +02:00
Koen Kanters
d06522d488
Refactor and rename. #8
2018-04-18 18:26:13 +02:00