|
|
@ -1,13 +1,12 @@
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
var path = require('path');
|
|
|
|
var path = require('path');
|
|
|
|
var nconf = require('nconf');
|
|
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
var fs = require('fs');
|
|
|
|
var winston = require('winston');
|
|
|
|
var winston = require('winston');
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = function (Meta) {
|
|
|
|
module.exports = function (Meta) {
|
|
|
|
Meta.logs = {
|
|
|
|
Meta.logs = {
|
|
|
|
path: path.join(nconf.get('base_dir') || (__dirname + '../../'), 'logs', 'output.log'),
|
|
|
|
path: path.join(__dirname, '..', '..', 'logs', 'output.log'),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Meta.logs.get = function (callback) {
|
|
|
|
Meta.logs.get = function (callback) {
|
|
|
|