/** * Combine log formatters based on environment. * TODO (@swaagie) this might need a k8 pod label as well * * @returns {Object} Combined formats. * @private */ format() { if (this.local) { return format.combine( reduxLogger(), format.colorize(), format.splat(), format.simple() ); } // // Remark (@indexzero): in the event that redux logging is not // turned off (i.e. configureMakeStore({ reducers })) AND level // is manually set to 'debug' not having `inlineColors` here // may cause issues. // return format.combine( format.splat(), format.label({ label: this.prefix }), format.json() ); }
/** * Combine log formatters based on environment. * TODO (@swaagie) this might need a k8 pod label as well * * @returns {Object} Combined formats. * @private */ format() { if (this.local) { return format.combine( reduxLogger(), format.colorize(), format.splat(), format.simple() ); } // // Remark (@indexzero): in the event that redux logging is not // turned off (i.e. configureMakeStore({ reducers })) AND level // is manually set to 'debug' not having `inlineColors` here // may cause issues. // return format.combine( format.splat(), format.label({ label: this.prefix }), format.json() ); }