Skip to content

Commit 5d201c5

Browse files
author
craig
committed
Merge remote-tracking branch 'origin/main'
2 parents 4cce029 + 209e492 commit 5d201c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The `ConsoleLogger` uses a JSONFormatter, but a PlainTextFormatter (or similar i
8585
substituted.
8686

8787
```javascript
88-
const {LoggerFactory,WinstonLogger} = require('@alt-javascript/logger');
88+
const {LoggerFactory,ConsoleLogger} = require('@alt-javascript/logger');
8989
const logger = LoggerFactory.getLogger('@myorg/mypackage/MyModule', new ConsoleLogger('@myorg/mypackage/MyModule',new PlainTextFromatter()));
9090

9191
logger.info('Hello world!');
@@ -94,8 +94,7 @@ logger.info('Hello world!');
9494
<a name="testing">Testability</a>
9595
-------------------------
9696

97-
Testing loggers is hard, and testability is a first class concern at @alt-javascript so the logging facade,
98-
and the module exports an EphemeralLogger and EphemeralLogSink that will capture log lines that can be asserted.
97+
Testing loggers is hard, and testability is a first class concern at @alt-javascript so the logging the module exports an EphemeralLogger and EphemeralLogSink that will capture log lines that can be asserted.
9998

10099
```javascript
101100
const {LoggerFactory,WinstonLogger} = require('@alt-javascript/logger');
@@ -106,7 +105,7 @@ logger.info('Hello world!');
106105

107106
//...
108107

109-
assert.isTrue(ephemeralLogger.sink.lines[0].contains('Hello world!'))
108+
assert.isTrue(ephemeralLogger.sink.loglines[0].contains('Hello world!'))
110109
```
111110

112111
<a name="license">License</a>

0 commit comments

Comments
 (0)