title: console.log to stdout on gulp events
body: <p>I want to log to stdout (the config environment) when a <a href="http://gulpjs.com">gulp</a> task is running or has run.</p>
  
  <p>Something like this:</p>
  
  <pre><code>gulp.task('scripts', function () {
    var enviroment = argv.env || 'development';
    var config = gulp.src('config/' + enviroment + '.json')
        .pipe(ngConstant({name: 'app.config'}));
    var scripts = gulp.src('js/*');
  
    return es.merge(config, scripts)
      .pipe(concat('app.js'))
      .pipe(gulp.dest('app/dist'))
      .on('success', function() { 
        console.log('Configured environment: ' + environment);
      });
  });
  </code></pre>
  
  <p>I am not sure what event I should be responding to or where to find a list of these. Any pointers? Many thanks.</p>