Hello,
just watch your video and have a question:
why we cant use constructor for change logger services:
Example:
class Message {
protected Logger: Logger
constructor (){
this.Logger = new LoggerLog()
}
get logger (){
return this.Logger
}
}
class MessageCustom extends Message{
constructor (){
super();
this.Logger = new LoggerSlung();
}
}
Hello,
just watch your video and have a question:
why we cant use constructor for change logger services:
Example: