You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any possibility of adding a hook for a custom reporter? I'd like to pass the message off to a function that formats the message so it matches the rest of my logs.
Something like this would be awesome:
var fileLogMessage = function(title, file) {
var color = $.util.colors.blue;
var label = title; // vendor
var message = file.path + ':( ' + file.count + ')'; // app/styles/main.scss (1)
$.util.log(color(label + message)); // [08:37:23] vendor file: /app/styles/main.scss (1)
};
gulp.task('vendor', function() {
return gulp.src(mainBowerFiles())
.pipe($.plumber(config.plumber))
// disableDefaultMessages: Hide the (Found [X] files.) messages.
// title: When running several build tasks in parallel, there is no indication of which task the file was found in. This would allow users to inject the name of the task into the filelog call.
// customReporter: The function that should be called to override the reporting behavior.
.pipe($.filelog({disableDefaultMessages: true, title: 'vendor file', customReporter: fileLogMessage}))
});
The text was updated successfully, but these errors were encountered:
Any possibility of adding a hook for a custom reporter? I'd like to pass the message off to a function that formats the message so it matches the rest of my logs.
Something like this would be awesome:
The text was updated successfully, but these errors were encountered: