mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 12:28:53 -04:00
Create log.js
This commit is contained in:
1 parent
326923f87d
commit
e708c62c1e
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
const log = {}
|
||||||
|
|
||||||
|
log.print = function (string) {
|
||||||
|
process.stdout.write(string)
|
||||||
|
}
|
||||||
|
|
||||||
|
log.start = function () {
|
||||||
|
this.print('Starting...\n')
|
||||||
|
console.time('\nDone in')
|
||||||
|
}
|
||||||
|
|
||||||
|
log.finish = function () {
|
||||||
|
console.timeEnd('\nDone in')
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = log
|
||||||
Reference in new issue
Block a user