Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / bunyan / bunyan.js
279 bytesRaw
1 | ; |
2 | |
3 | var bunyan = require('bunyan'); |
4 | var fs = require('fs'); |
5 | |
6 | var logger = bunyan.createLogger({ |
7 | name: 'pkg', |
8 | streams: [ { |
9 | type: 'rotating-file', |
10 | path: 'pkg.log', |
11 | level: 'info' |
12 | } ] |
13 | }); |
14 | |
15 | if (logger) { |
16 | fs.unlinkSync('pkg.log'); |
17 | console.log('ok'); |
18 | } |
19 |
Built with git-ssb-web