'use strict';

var bunyan        = require('bunyan');

var logger = bunyan.createLogger({
   name: "cloudlet-platform",
   src: true,
   streams: [
      {
         level: 'info',
         stream: '/opt/openi/cloudlet_platform/logs/cloudletPlatformInfo.log'
      },
      {
         level: 'error',
         path: '/opt/openi/cloudlet_platform/logs/cloudletPlatformError.log'
      },
      {
         level: 'debug',
         path: '/opt/openi/cloudlet_platform/logs/cloudletPlatformDebug.log'
      }
   ]
});

module.exports = logger;
'use strict';

var bunyan        = require('bunyan');

var logger = bunyan.createLogger({
   name: "cloudlet-platform",
   src: true,
   streams: [
      {
         level: 'info',
         path: '/opt/openi/cloudlet_platform/logs/cloudletPlatformInfo.log'
      },
      {
         level: 'error',
         path: '/opt/openi/cloudlet_platform/logs/cloudletPlatformError.log'
      },
      {
         level: 'debug',
         path: '/opt/openi/cloudlet_platform/logs/cloudletPlatformDebug.log'
      }
   ]
});

module.exports = logger;
fix info level