Skip to content

Commit b9513d5

Browse files
authored
docs: add JavaScript syntax highlighting to code block in READMD.md (#38)
1 parent 0a9d9d6 commit b9513d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ logger.setLevelNoColor();
200200

201201
The default time format is `toISOString`, but you can change it by using `setDate(callback)`
202202

203-
```
203+
```javascript
204204
logger.setDate(() => (new Date()).toLocaleTimeString())
205205
logger.info("This is an info message") // 5:17:59 pm [INFO] This is an info message
206206
```
@@ -209,7 +209,7 @@ logger.info("This is an info message") // 5:17:59 pm [INFO] This is an info mess
209209

210210
You can create a named logger by calling `createNamedLogger()`
211211

212-
```
212+
```javascript
213213
logger1 = logger.createNamedLogger("Test 1");
214214
logger2 = logger.createNamedLogger("Test 2");
215215
logger1.info('something happened'); // 2022-08-20T04:56:17.834Z [Test 1] [INFO] something happened

0 commit comments

Comments
 (0)