This commit is contained in:
Ilya Kantor 2019-06-10 10:33:39 +03:00
parent 728998b28f
commit dbcbd45a4d

View file

@ -195,18 +195,18 @@ Now we can easily make a convenience function for current logs:
```js ```js
// currentLog will be the partial of log with fixed first argument // currentLog will be the partial of log with fixed first argument
let currentLog = log(new Date()); let logNow = log(new Date());
// use it // use it
currentLog("INFO", "message"); // [HH:mm] INFO message logNow("INFO", "message"); // [HH:mm] INFO message
``` ```
And here's a convenience function for current debug messages: And here's a convenience function for current debug messages:
```js ```js
let todayDebug = currentLog("DEBUG"); let debugNow = logNow("DEBUG");
currentLog("message"); // [HH:mm] DEBUG message debugNow("message"); // [HH:mm] DEBUG message
``` ```
So: So: