mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Use vscode log path (#6599)
* use vscode log file * remove log * remove sqltools output log and add command to open log
This commit is contained in:
@@ -8,5 +8,3 @@ export const sharedLogChannelId = 'sharedLog';
|
||||
export const rendererLogChannelId = 'rendererLog';
|
||||
export const extHostLogChannelId = 'extHostLog';
|
||||
export const telemetryLogChannelId = 'telemetryLog';
|
||||
// {{SQL CARBON EDIT}}
|
||||
export const sqlToolsLogChannellId = 'sqlToolsLog';
|
||||
|
||||
@@ -32,12 +32,6 @@ class LogOutputChannels extends Disposable implements IWorkbenchContribution {
|
||||
this.registerLogChannel(Constants.sharedLogChannelId, nls.localize('sharedLog', "Shared"), URI.file(join(environmentService.logsPath, `sharedprocess.log`)));
|
||||
this.registerLogChannel(Constants.rendererLogChannelId, nls.localize('rendererLog', "Window"), URI.file(join(environmentService.logsPath, `renderer${environmentService.configuration.windowId}.log`)));
|
||||
|
||||
// {{SQL CARBON EDIT}} @anthonydresser 05/19/19 investigate, this should be in the extension
|
||||
let toolsServiceLogFile: string = join(environmentService.logsPath, '..', '..', 'mssql', `sqltools_${Date.now()}.log`);
|
||||
console.log(`SqlTools Log file is: ${toolsServiceLogFile}`);
|
||||
this.registerLogChannel(Constants.sqlToolsLogChannellId, nls.localize('sqlToolsLog', "Log (SqlTools)"), URI.file(toolsServiceLogFile));
|
||||
// {{SQL CARBON EDIT}} - End
|
||||
|
||||
const registerTelemetryChannel = (level: LogLevel) => {
|
||||
if (level === LogLevel.Trace && !Registry.as<IOutputChannelRegistry>(OutputExt.OutputChannels).getChannel(Constants.telemetryLogChannelId)) {
|
||||
this.registerLogChannel(Constants.telemetryLogChannelId, nls.localize('telemetryLog', "Telemetry"), URI.file(join(environmentService.logsPath, `telemetry.log`)));
|
||||
@@ -71,4 +65,4 @@ class LogOutputChannels extends Disposable implements IWorkbenchContribution {
|
||||
|
||||
}
|
||||
|
||||
Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(LogOutputChannels, LifecyclePhase.Restored);
|
||||
Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).registerWorkbenchContribution(LogOutputChannels, LifecyclePhase.Restored);
|
||||
|
||||
Reference in New Issue
Block a user