So consider we have Logger class. And also we have a LoggerInContext class which extends Logger. And Logger has factory method to create new LoggerInContext instances.
// logger.ts
import { LoggerInContext } from './logger-in-context';
export class Logger {