logs.js
621 Bytes
var console = process.console;
module.exports = function(Logs) {
Logs.Logs = function(cb){
console.tag('TestLog','Logs').file().time().log('http://localhost:3232/logs/');
console.tag('TestLog','Logs').file().time().warning('http://localhost:3232/logs/');
console.tag('TestLog','Logs').file().time().error('http://localhost:3232/logs/');
console.tag('TestLog','Logs').file().time().info('http://localhost:3232/logs/');
cb(null);
};
Logs.remoteMethod('Logs',{
http:{path:'/Logs',verb:'get'},
returns: {arg: 'data', type: 'object', root: true}
});
};