update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	 * Create a logger instance to write to file.
	 * @param options Logging options.
	 */
Create a logger instance to write to file.
@param options Logging options.
Create a logger instance to write to file . @param options Logging options .
function createLogger(options) {
	    let logLevel;
	    switch (options.logVerbosity) {
	        case 'terse':
	            logLevel = tsserverlibrary.server.LogLevel.terse;
	            break;
	        case 'requestTime':
	            logLevel = tsserverlibrary.server.LogLevel.requestTime;
	            break;
	        case 'verbose':
	            logLevel = tsserverlibrary.server.LogLevel.verbose;
	            break;
	        case 'normal':
	            logLevel = tsserverlibrary.server.LogLevel.normal;
	            break;
	        default:
	            logLevel = tsserverlibrary.server.LogLevel.terse;
	            break;
	    }
	    const traceToConsole = !options.logFile;
	    return new Logger(traceToConsole, logLevel, options.logFile);
	}
function createLogger ( options ) { let logLevel ; switch ( options . logVerbosity ) { case 'terse' : logLevel = tsserverlibrary . server . LogLevel . terse ; break ; case 'requestTime' : logLevel = tsserverlibrary . server . LogLevel . requestTime ; break ; case 'verbose' : logLevel = tsserverlibrary . server . LogLevel . verbose ; break ; case 'normal' : logLevel = tsserverlibrary . server . LogLevel . normal ; break ; default : logLevel = tsserverlibrary . server . LogLevel . terse ; break ; } const traceToConsole = ! options . logFile ; return new Logger ( traceToConsole , logLevel , options . logFile ) ; }
Create a logger instance to write to file.
Create a logger instance to write to file .
// If logFile is not provided then just trace to console.