Update log.js
This commit is contained in:
parent
fffd2386bd
commit
572ca9953c
|
@ -1,7 +1,8 @@
|
||||||
const log = {}
|
const log = {}
|
||||||
|
|
||||||
log.print = function (string) {
|
log.print = function (message) {
|
||||||
process.stdout.write(string)
|
if (typeof message === 'object') message = JSON.stringify(message, null, 2)
|
||||||
|
process.stdout.write(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.start = function () {
|
log.start = function () {
|
||||||
|
|
Loading…
Reference in New Issue