• Gets a logger instance for the given class instance.

    The following shows a typical pattern on how to create loggers:

    class MyClass {
    protected readonly logger = getLoggerFor(this);
    }

    If no class is applicable, a logger can also be created as follows:

    const logger = getLoggerFor('MyFunction');
    

    Parameters

    • loggable: string | Instance

      A class instance or a class string name.

    Returns Logger