This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
node-spearhead/test/lib/log.js
2015-09-01 00:31:00 -07:00

28 lines
635 B
JavaScript

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2015, Joyent, Inc.
*/
/*
* bunyan logger for tests
*/
var bunyan = require('bunyan');
var restifyBunyan = require('restify-clients/lib/helpers/bunyan');
module.exports = bunyan.createLogger({
name: 'node-triton-test',
serializers: restifyBunyan.serializers,
streams: [
{
level: process.env.LOG_LEVEL || 'error',
stream: process.stderr
}
]
});