1.0.9 • Published 7 years ago

logs-dir v1.0.9

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

logs-dir

Installation

Using npm:

$ npm insatll logs-dir -s

In Node.js:

 var logs = require('logs-dir');

 var err_data = "发生错误";//error log

 logs.write('error',err_data);  //err_data / string  


 var err_list ={"test":"test1"}; //error log

 logs.write('error',JSON.stringify(err_list));  //err_data / object  

result:created file

/_logs/error/2018-08-21.txt

error_content:

---2017-8-21 11:6:32【发生错误】

---2017-8-21 11:6:32【{"test":"test1"}】

exp

image

Support

Tested in Chrome 54-55, Firefox 49-50, IE 11, Edge 14, Safari 9-10, Node.js 6-7, & PhantomJS 2.1.1.

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago