A Logger that manages logs from a particular source.

interface ILogger {
    contentChanged: ISignal<ILogger, IContentChange>;
    isDisposed: boolean;
    length: number;
    level: LogLevel;
    maxLength: number;
    outputAreaModel: ILoggerOutputAreaModel;
    rendermime: null | IRenderMimeRegistry;
    source: string;
    stateChanged: ISignal<ILogger, IStateChange>;
    version: number;
    checkpoint(): void;
    clear(): void;
    dispose(): void;
    log(log): void;


Implemented by


contentChanged: ISignal<ILogger, IContentChange>

A signal emitted when the log model changes.

isDisposed: boolean

Test whether the object has been disposed.


This property is always safe to access.

length: number

Number of outputs logged.

level: LogLevel

Log level.

maxLength: number

Max number of messages.

outputAreaModel: ILoggerOutputAreaModel

Output Area Model used to manage log storage in memory.

rendermime: null | IRenderMimeRegistry

Rendermime to use when rendering outputs logged.

source: string

The name of the log source.

stateChanged: ISignal<ILogger, IStateChange>

A signal emitted when the rendermime changes.

version: number

The cumulative number of messages the log has stored.


  • Dispose of the resources held by the object.


    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void