Skip to content

Commit d6e3ae9

Browse files
committed
change
1 parent e319a70 commit d6e3ae9

40 files changed

+255
-287
lines changed

docs/browser-logs.logger.alert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.alert() method
66

7+
Add an ALERT log (action must be taken immediately).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.critical.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.critical() method
66

7+
Add a CRITICAL log (serious failure).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.debug.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.debug() method
66

7+
Add a DEBUG log (developer usage).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.emerg.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.emerg() method
66

7+
Add an EMERGENCY log (system is unusable).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.error.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.error() method
66

7+
Add an ERROR log (runtime error).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.info.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.info() method
66

7+
Add an INFO log (notable but expected).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## Logger interface
66

7+
Set of convenience methods for each supported log level.
8+
9+
All methods accept the same parameters: `message`: human-readable log text. `messageContext`: optional JSON-serialisable object merged with the log context. `error`: optional `Error` instance captured with the log.
10+
711
**Signature:**
812

913
```typescript
@@ -30,6 +34,8 @@ Description
3034

3135
</td><td>
3236

37+
Add an ALERT log (action must be taken immediately).
38+
3339

3440
</td></tr>
3541
<tr><td>
@@ -39,6 +45,8 @@ Description
3945

4046
</td><td>
4147

48+
Add a CRITICAL log (serious failure).
49+
4250

4351
</td></tr>
4452
<tr><td>
@@ -48,6 +56,8 @@ Description
4856

4957
</td><td>
5058

59+
Add a DEBUG log (developer usage).
60+
5161

5262
</td></tr>
5363
<tr><td>
@@ -57,6 +67,8 @@ Description
5767

5868
</td><td>
5969

70+
Add an EMERGENCY log (system is unusable).
71+
6072

6173
</td></tr>
6274
<tr><td>
@@ -66,6 +78,8 @@ Description
6678

6779
</td><td>
6880

81+
Add an ERROR log (runtime error).
82+
6983

7084
</td></tr>
7185
<tr><td>
@@ -75,6 +89,8 @@ Description
7589

7690
</td><td>
7791

92+
Add an INFO log (notable but expected).
93+
7894

7995
</td></tr>
8096
<tr><td>
@@ -84,6 +100,8 @@ Description
84100

85101
</td><td>
86102

103+
Add a NOTICE log (normal but significant).
104+
87105

88106
</td></tr>
89107
<tr><td>
@@ -93,6 +111,8 @@ Description
93111

94112
</td><td>
95113

114+
Add an OK log (success).
115+
96116

97117
</td></tr>
98118
<tr><td>
@@ -102,6 +122,8 @@ Description
102122

103123
</td><td>
104124

125+
Add a WARN log (unexpected behaviour).
126+
105127

106128
</td></tr>
107129
</tbody></table>

docs/browser-logs.logger.notice.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.notice() method
66

7+
Add a NOTICE log (normal but significant).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.ok.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.ok() method
66

7+
Add an OK log (success).
8+
79
**Signature:**
810

911
```typescript

docs/browser-logs.logger.warn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Logger.warn() method
66

7+
Add a WARN log (unexpected behaviour).
8+
79
**Signature:**
810

911
```typescript

0 commit comments

Comments
 (0)