export class MyComponent {
private readonly _log: Logger;

constructor(logService: LogService) {
this._log = logService.getLogger(this);
}
}

Constructors

Methods

  • Parameters

    • name: string

    Returns Logger

  • Parameters

    • instance: object

      IMPORTANT This overload should not be used if your build system minifies or otherwise mangles class names and you intend including the class name in your log output.

    Returns Logger