File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,15 @@ These environment variables will only be used if values are not passed into the
60
60
## Custom logger
61
61
62
62
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.
64
64
65
65
```
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 });
67
72
```
68
73
69
74
## Promises
You can’t perform that action at this time.
0 commit comments