1 | var colors = require('colors');
|
2 |
|
3 |
|
4 | module.exports = function(){
|
5 | colors.setTheme({
|
6 | success:'green',
|
7 | silly: 'rainbow',
|
8 | input: 'grey',
|
9 | verbose: 'cyan',
|
10 | prompt: 'grey',
|
11 | info: 'cyan',
|
12 | data: 'grey',
|
13 | help: 'cyan',
|
14 | warn: 'yellow',
|
15 | debug: 'red',
|
16 | error: 'red'
|
17 | });
|
18 | alajs.echodebug = function(message){
|
19 | console.log("<-------------debug------------->\n".debug+message.toString().debug);
|
20 | }
|
21 | alajs.echoInfo = function(message){
|
22 | console.log('[INFO]==> '.info+message.toString());
|
23 | }
|
24 | alajs.echoSuccess= function(message){
|
25 | console.log('[SUCCESS]==> '.success+message.toString().success);
|
26 | }
|
27 | alajs.echoError= function(message){
|
28 | console.log('[ERROR]==> '.error+message.toString().error);
|
29 | }
|
30 | alajs.echoAutoRoute = function(method,message){
|
31 | console.log('['.info+method.toString().info+']-> '.info+message);
|
32 | }
|
33 | }
|
34 |
|
35 |
|
36 |
|