Diff
@sibelius merged redux-diff-logger
and now you can use it by passing diff: true
to options
in createLogger()
, f.e.
const logger = createLogger({
diff: true,
});
❗️ Diff is very unstable and not tested, so we don't recommend use it as primary feature of logging.
Formatter for title
@spalger made titleFormatter
option (#165)
titleFormatter = (action: Object, time: String?, took: Number?) => title
Format the title used for each action.
Default: prints something like action @ ${time} ${action.type} (in ${took.toFixed(2)} ms)
Bugfixes
- fix:
performance
now checking fornull
and don't fail withTypeError
(#173) - fix: default color of title now inherits console's default color (#176)