File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 3939 < a class ="nav-link pointer " [routerLink] ="['/api/characteristics'] " routerLinkActive ="active "> Characteristics</ a >
4040 </ li >
4141
42+ < li class ="nav-item ">
43+ < a class ="nav-link pointer " [routerLink] ="['/api/Log'] " routerLinkActive ="active "> Log</ a >
44+ </ li >
45+
4246 < li class ="nav-item section-title mt-3 ">
4347 < a class ="nav-link " [routerLink] ="['/config-schema'] " routerLinkActive ="active ">
4448 < span class ="theme-icon-holder mr-2 "> < i class ="fas fa-code "> </ i > </ span > Plugin Config Schema
Original file line number Diff line number Diff line change 11# LOG Reference
22
3- ### Logging Levels
3+ ### Info
44
5- > this. log
5+ > log(message: string, ...parameters: any [ ] )
66
77Basic logging
88
9- > this. log.info
9+ > log.info(message: string, ...parameters: any [ ] )
1010
1111Basic logging
1212
1313```
1414 this.log.info('Setting switch state to:', value);
1515```
1616
17- > this.log.success
17+ ### Success
18+
19+ > log.success(message: string, ...parameters: any[ ] )
1820
1921Messages are highlighted in green
2022( Since Homebridge 1.8.0 )
2123
2224```
2325 this.log.success(`Discovery finished, found ${this.receiverCount} Yamaha AVR's and creating ${this.receivers.length} HomeKit accessories.`);
2426```
25- > this.log.warn
27+
28+ ### Warn
29+
30+ > log.warn(message: string, ...parameters: any[ ] )
2631
2732Messages are highlighted in yellow, and with the console error logger
2833
2934```
3035 this.log.warn(`Zone controller for ${zoneName} already exists`);
3136```
32- > this.log.error
37+
38+ ### Error
39+
40+ > log.error(message: string, ...parameters: any[ ] )
3341
3442Messages are highlighted in red, and with the console error logger
3543
3644```
3745 this.log.error(`Error getting system config for ${service.name}:`, error);
3846```
39- > this.log.debug
47+
48+ ### Debug
49+
50+ > log.debug(message: string, ...parameters: any[ ] )
4051
4152Messages are highlighted in gray<br >
4253Messages with DEBUG level are only displayed if explicitly enabled. Debug level logging is enabled with the homebridge command line options -D or --debug.
You can’t perform that action at this time.
0 commit comments