Skip to content

Commit

Permalink
fix: don't get so fancy with the font color scheme (twilio#96)
Browse files Browse the repository at this point in the history
We should not use specific colors for coloring text because it could conflict with the terminal's background color.# Please enter the commit message for your changes. Lines starting
  • Loading branch information
childish-sambino committed Jul 2, 2020
1 parent 98987a3 commit 3f12305
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/messaging/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const LoggingLevel = {
};

const LoggingLevelStyle = {
[LoggingLevel.debug]: msg => chalk.gray('[DEBUG] ' + msg),
[LoggingLevel.info]: msg => chalk.white(msg),
[LoggingLevel.warn]: msg => ' ' + chalk.yellowBright('»') + ' ' + chalk.white(msg),
[LoggingLevel.error]: msg => ' ' + chalk.red('»') + ' ' + chalk.whiteBright(msg)
[LoggingLevel.debug]: msg => chalk.dim('[DEBUG] ' + msg),
[LoggingLevel.info]: msg => msg,
[LoggingLevel.warn]: msg => chalk.italic(' » ' + msg),
[LoggingLevel.error]: msg => chalk.bold(' » ' + msg)
};

class Logger {
Expand Down

0 comments on commit 3f12305

Please sign in to comment.