This commit is contained in:
Max 2018-11-08 13:54:19 +03:00 коммит произвёл GitHub
Родитель 4f9b0fbc1f
Коммит 850e69d9ad
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,4 @@
import {ILogger, LogHelper, LogLevel} from "./logHelper";
import {ILogger, LogHelper, LogLevel, AppCenterExtensionLogPrefix} from "./logHelper";
export class ConsoleLogger implements ILogger {
public log(message: string, level: LogLevel): void {
@ -38,6 +38,6 @@ export class ConsoleLogger implements ILogger {
}
protected static getFormattedMessage(message: string, level: LogLevel): string {
return `[${LogLevel[level]}] ${message}\n`;
return `[${AppCenterExtensionLogPrefix}: ${LogLevel[level]}] ${message}\n`;
}
}

Просмотреть файл

@ -22,6 +22,8 @@ export class LogHelper {
}
}
export const AppCenterExtensionLogPrefix: string = "VSCode App Center";
function getLogLevel() {
try {
const SettingsHelper = require("../settingsHelper").SettingsHelper;

Просмотреть файл

@ -1,5 +1,5 @@
import * as vscode from "vscode";
import { ILogger, LogHelper, LogLevel } from "./logHelper";
import { ILogger, LogHelper, LogLevel, AppCenterExtensionLogPrefix } from "./logHelper";
const channels: { [channelName: string]: OutputChannelLogger } = {};
@ -74,7 +74,7 @@ export class OutputChannelLogger implements ILogger {
}
protected static getFormattedMessage(message: string, level: LogLevel): string {
return `[${LogLevel[level]}] ${message}\n`;
return `[${AppCenterExtensionLogPrefix}: ${LogLevel[level]}] ${message}\n`;
}
public getOutputChannel(): vscode.OutputChannel {

Просмотреть файл

@ -7,7 +7,7 @@ export class LogStrings {
public static FailedToGetVSTSProjectList: string = "Failed to get VSTS Project list.";
public static FailedToGetVSTSReposList: string = "Failed to get VSTS Git repositories list.";
public static FailedToGetAppCenterProfile: string = "Could get profile from App Center.";
public static FailedToGetProfileFile: string = "No profile file found.";
public static FailedToGetProfileFile: string = "Profile not found. Login to the App Center via the Visual Studio Code Extension to create the profile.";
public static FailedToGetUserProfile: string = "Couldn't get user profile.";
public static FailedToGetUserFromServer: string = "Failed to fetch user info from server";
public static NoTokenProvided: string = "No token provided on login";