Skip to content

Commit 54b29d2

Browse files
committed
Sidarbar
1 parent 7b8d3d3 commit 54b29d2

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

src/app/sidebar/sidebar.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
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

src/docs/api/Log.md renamed to src/docs/api/empty.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,53 @@
11
# LOG Reference
22

3-
### Logging Levels
3+
### Info
44

5-
> this.log
5+
> log(message: string, ...parameters: any[])
66
77
Basic logging
88

9-
> this.log.info
9+
> log.info(message: string, ...parameters: any[])
1010
1111
Basic 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
1921
Messages 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
2732
Messages 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
3442
Messages 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
4152
Messages are highlighted in gray<br>
4253
Messages with DEBUG level are only displayed if explicitly enabled. Debug level logging is enabled with the homebridge command line options -D or --debug.

0 commit comments

Comments
 (0)