export class MyComponent { private readonly _log: Logger; constructor(logService: LogService) { this._log = logService.getLogger(this); }} Copy
export class MyComponent { private readonly _log: Logger; constructor(logService: LogService) { this._log = logService.getLogger(this); }}
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.