Created
July 9, 2018 07:35
-
-
Save caritasverein/6cac926bc06b9fe074d057d6405896d9 to your computer and use it in GitHub Desktop.
Example code for signale interactive logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Signale} = require('signale'); | |
const interactive = new Signale({interactive: true, scope: 'interactive'}); | |
interactive.await('[%d/4] - Process A', 1); | |
setTimeout(() => { | |
interactive.success('[%d/4] - Process A', 2); | |
setTimeout(() => { | |
interactive.await('[%d/4] - Process B', 3); | |
setTimeout(() => { | |
interactive.error('[%d/4] - Process B', 4); | |
setTimeout(() => {}, 1000); | |
}, 1000); | |
}, 1000); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment