mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-14 11:00:03 -04:00
Create log.js
This commit is contained in:
parent
a79e3567cf
commit
417e9cb997
1 changed files with 16 additions and 0 deletions
16
scripts/log.js
Normal file
16
scripts/log.js
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue