'use strict';

const bunyan        = require('bunyan');
const PrettyStream  = require('bunyan-prettystream');

var prettyStdOut = new PrettyStream();
prettyStdOut.pipe(process.stdout);

global.log = bunyan.createLogger({
  name:         'betty',
  streams: [{
    level:      global.betty.log_level,
    stream:     prettyStdOut,
    type:       'raw',
  }],
});

@@ -239,16 +239,81 @@
 betty',%0A
+  serializers: %7B%0A    err:        bunyan.stdSerializers.err,%0A  %7D,%0A
   stream

add err stdserializer