Changelog
- feature:
colors.title
withaction
argument for better color management
Thankfully to @af and #100 now you can paint even title! 💅
For example, you can paint title for red
if action has fail
in type.
const logger = createLogger({
colors: {
title: (action) => {
if (action.type.indexOf(`fail`)) {
return `red`;
} else {
return `#111`;
}
};
}
})