Interface ILogOutputModel

The interface for an output model.

interface ILogOutputModel {
    changed: ISignal<ILogOutputModel, void>;
    data: ReadonlyPartialJSONObject;
    executionCount: ExecutionCount;
    level: FullLogLevel;
    metadata: ReadonlyPartialJSONObject;
    streamText?: IObservableString;
    timestamp: Date;
    trusted: boolean;
    type: string;
    dispose(): void;
    setData(options): void;
    toJSON(): IOutput;
}

Hierarchy (view full)

Implemented by

Properties

changed: ISignal<ILogOutputModel, void>

A signal emitted when the output model changes.

The data associated with the model.

executionCount: ExecutionCount

The execution count of the model.

level: FullLogLevel

Log level

The metadata associated with the model.

Among others, it can include an attribute named fragment that stores a URI fragment identifier for the MIME resource.

streamText?: IObservableString

The observable text, present when the output type is set to "stream".

timestamp: Date

Date & time when output is logged.

trusted: boolean

Whether the output is trusted.

type: string

The output type.

Methods

  • Dispose of the resources used by the output model.

    Returns void

  • Set the data associated with the model.

    Notes

    Calling this function may trigger an asynchronous operation that could cause the renderer to be rendered with a new model containing the new data.

    Returns void