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);} Copy
class MyClass { protected readonly logger = getLoggerFor(this);}
If no class is applicable, a logger can also be created as follows:
const logger = getLoggerFor('MyFunction'); Copy
const logger = getLoggerFor('MyFunction');
A class instance or a class string name.
Gets a logger instance for the given class instance.
The following shows a typical pattern on how to create loggers:
If no class is applicable, a logger can also be created as follows: