ts-log-utils
TypeScript Log Utilities
Requirements
Configuration
configuration file
${project root}/config/default.yml
See config
example
log4js:appenders:out:type: consolebatch:type: dateFilefilename: "/tmp/batch.log"pattern: "-yyyy-MM-dd"backups: 3categories:default:appenders:- outlevel: ALLbatch:appenders:- batchlevel: ALL
Usage
install
npm install --save-dev ts-log-utils
build
npm run build
test
npm run test
coverage
npm run coverageopen ./coverage/ts-report/index.html
sample
code
;LogUtil.debug"Log me!";
webpack.config.production.js
const uglifyEsPlugin = ;const config =plugins:compress:drop_console: truemoduleexports = config;