TypeScript Log Utilities
${project root}/config/default.yml
See config
log4js:
appenders:
out:
type: console
batch:
type: dateFile
filename: "/tmp/batch.log"
pattern: "-yyyy-MM-dd"
backups: 3
categories:
default:
appenders:
- out
level: ALL
batch:
appenders:
- batch
level: ALL
npm install --save-dev ts-log-utils
npm run build
npm run test
npm run coverage
open ./coverage/ts-report/index.html
import { LogUtils } from "ts-log-utils";
LogUtil.debug("Log me!");
const uglifyEsPlugin = require("uglify-es-webpack-plugin");
const config = {
plugins: [
new uglifyEsPlugin({
compress: {
drop_console: true
}
})
]
}
module.exports = config;