Skip to content

Commit

Permalink
Log to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Aug 20, 2020
1 parent b17b518 commit 5362c65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/util/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import chalk from 'chalk'

export default {
info(messages) {
console.log('')
console.warn('')
messages.forEach(message => {
console.log(chalk.bold.cyan('info'), '-', message)
console.warn(chalk.bold.cyan('info'), '-', message)
})
},
warn(messages) {
console.log('')
console.warn('')
messages.forEach(message => {
console.log(chalk.bold.yellow('warn'), '-', message)
console.warn(chalk.bold.yellow('warn'), '-', message)
})
},
risk(messages) {
console.log('')
console.warn('')
messages.forEach(message => {
console.log(chalk.bold.magenta('risk'), '-', message)
console.warn(chalk.bold.magenta('risk'), '-', message)
})
},
}

0 comments on commit 5362c65

Please sign in to comment.