source: frontend/node_modules/fork-ts-checker-webpack-plugin/lib/logger/LoggerFactory.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 755 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const WebpackInfrastructureLogger_1 = require("./WebpackInfrastructureLogger");
4const PartialLogger_1 = require("./PartialLogger");
5function createLogger(type, compiler) {
6 if (typeof type !== 'string') {
7 return type;
8 }
9 switch (type) {
10 case 'webpack-infrastructure':
11 return (WebpackInfrastructureLogger_1.createWebpackInfrastructureLogger(compiler) ||
12 PartialLogger_1.createPartialLogger(['log', 'error'], console));
13 case 'silent':
14 return PartialLogger_1.createPartialLogger([], console);
15 case 'console':
16 default:
17 return console;
18 }
19}
20exports.createLogger = createLogger;
Note: See TracBrowser for help on using the repository browser.