log4ngx

    Class LogService

    export class MyComponent {
    private readonly _log: Logger;

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

    Constructors

    Methods

    • IMPORTANT Passing a string value for nameOrInstance, rather than an object is recommended if your build system minifies or otherwise mangles class names and you intend including the class name in your log output.

      Parameters

      • nameOrInstance: string | object

        A string value containing the name of the Logger or an object the name of which will be used.

      Returns Logger

      The Logger associated with the specified name.

    MMNEPVFCICPMFPCPTTAAATR