@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
37 lines (36 loc) • 848 B
TypeScript
import { LogLevel } from './log-level';
/**
* Log record.
*/
export interface LogRecord {
/**
* The record originator of event within a module.
* ex) <angular component>
*/
source: string;
/**
* The level of event.
*/
level: LogLevel;
/**
* The message of event.
*/
message: any;
/**
* The custom header of the message when logged in the console
*/
consoleGroupHeader?: string;
/**
* The stack trace data.
*/
stack?: any;
/**
* The parameters of event. This could include http request/response with headers when an error is recorded.
* A header should keep unique ID but not primary record property.
*/
params?: any;
/**
* The parameters that wouldn't be recorded to shell and gateway.
*/
localParams?: any;
}