Skip to content

Commit 4cb852d

Browse files
author
Peter Hulst
committed
improved example
1 parent 4628050 commit 4cb852d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@ These environment variables will only be used if values are not passed into the
6060
## Custom logger
6161

6262
You may pass a custom log implementation into the constructor as well. The default logger is the console logger.
63-
Your customer logger must implement the 'log', 'warn' and 'error' functions, all accepting strings.
63+
Your custom logger must implement the 'log', 'warn' and 'error' functions, all accepting strings.
6464

6565
```
66-
var client = new Tile38({debug: true, logger: yourLogger });
66+
const logger = {
67+
log: function(msg) { ... },
68+
warn: function(msg) { ... },
69+
error: function(msg) { ... }
70+
}
71+
const client = new Tile38({debug: true, logger: yourLogger });
6772
```
6873

6974
## Promises

0 commit comments

Comments
 (0)