Skip to content

Commit

Permalink
Made console colors lighter (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kogut committed Jul 15, 2016
1 parent 465c1c5 commit df0cd13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/changeLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function logger(change) {
switch (change.type) {
case 'action':
// name, target, arguments, fn
logNext(`%caction '%s' %s`, 'color:blue', change.name, autoWrap("(", getNameForThis(change.target)));
logNext(`%caction '%s' %s`, 'color:dodgerblue', change.name, autoWrap("(", getNameForThis(change.target)));
log(change.arguments);
// dir({
// fn: change.fn,
Expand All @@ -39,19 +39,19 @@ function logger(change) {
break;
case 'scheduled-reaction':
// object
logNext(`%cscheduled async reaction '%s'`, 'color:green', observableName(change.object));
logNext(`%cscheduled async reaction '%s'`, 'color:#10a210', observableName(change.object));
break;
case 'reaction':
// object, fn
logNext(`%creaction '%s'`, 'color:green', observableName(change.object));
logNext(`%creaction '%s'`, 'color:#10a210', observableName(change.object));
// dir({
// fn: change.fn
// });
trace();
break;
case 'compute':
// object, target, fn
group(`%ccomputed '%s' %s`, 'color:green', observableName(change.object), autoWrap("(", getNameForThis(change.target)));
group(`%ccomputed '%s' %s`, 'color:#10a210', observableName(change.object), autoWrap("(", getNameForThis(change.target)));
// dir({
// fn: change.fn,
// target: change.target
Expand All @@ -60,7 +60,7 @@ function logger(change) {
break;
case 'error':
// message
logNext('%cerror: %s', 'color:red', change.message);
logNext('%cerror: %s', 'color:tomato', change.message);
trace();
closeGroupsOnError();
break;
Expand Down

0 comments on commit df0cd13

Please sign in to comment.