Files
vudayani-vmw e319e43deb Log Levels View
* fetch and display loglevels

* change log levels for packages

* clean up logs

* address review comments

* switch the CONNECT_TO_LS key

* Avoid caching loggers data

* add copyright headers

---------

Co-authored-by: V Udayani <vudayani@vudayaniSMD6M.vmware.com>
2023-12-20 16:23:32 -05:00

59 lines
1.7 KiB
TypeScript

import { NotificationType } from "vscode-languageclient";
/**
* Common information provided by all live process notifications, for all types
* of events and for all types of processes.
*/
export interface LiveProcess {
type: string;
processKey: string;
processName: string;
}
/**
* Information returned by notification for updated log level for the live process
*/
export interface LiveProcessUpdatedLogLevel {
type: string;
processKey: string;
processName: string;
packageName: string;
effectiveLevel: string;
configuredLevel: string;
}
/**
* Specialized interface for type 'local' LiveProcess.
*/
export interface LocalLiveProcess extends LiveProcess {
type: "local"
pid: string
}
export namespace LiveProcessConnectedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/connected');
}
export namespace LiveProcessDisconnectedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/disconnected');
}
export namespace LiveProcessUpdatedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/updated');
}
export namespace LiveProcessGcPausesMetricsUpdatedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/gcpauses/metrics/updated');
}
export namespace LiveProcessMemoryMetricsUpdatedNotification {
export const type = new NotificationType<LiveProcess>('sts/liveprocess/memory/metrics/updated');
}
export namespace SpringIndexUpdatedNotification {
export const type = new NotificationType<void>('spring/index/updated');
}
export namespace LiveProcessLogLevelUpdatedNotification {
export const type = new NotificationType<LiveProcessUpdatedLogLevel>('sts/liveprocess/loglevel/updated');
}