Use winston

This commit is contained in:
Ibby Hadeed
2017-12-28 23:15:34 -05:00
parent a26457b30a
commit 1c35991548
8 changed files with 88 additions and 14 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
import * as ts from 'typescript';
import { Logger } from '../../logger';
import { convertValueToLiteral, getDecorator, getDecoratorArgs, getDecoratorName } from '../helpers';
import { transformMembers } from './members';
function transformClass(cls: any, ngcBuild?: boolean) {
console.time('~ transformClass: ' + cls.name.text);
Logger.profile((ngcBuild ? '[ngc]' : '[esm]') + 'transformClass: ' + cls.name.text);
const pluginStatics = [];
const dec: any = getDecorator(cls);
@@ -37,7 +38,7 @@ function transformClass(cls: any, ngcBuild?: boolean) {
]
);
console.timeEnd('~ transformClass: ' + cls.name.text);
Logger.profile((ngcBuild ? '[ngc]' : '[esm]') + 'transformClass' + cls.name.text);
return cls;
}