Closed shirin-monzavi closed 4 months ago
Hello, I have two problems. Firstly, I need to write log and my logger is specific for us.
private readonly ILoggerProvider<GetBalanceQueryHandler> _logger;
GetBalanceQueryHandler is type of the handler and i want to use IRequestPreProcessor.
when i inject ILoggerProvider I cannot get the type of handler.
Note: GetBalanceQueryHandler is a sample and for every scenario is different.
Secondly, I want to write some log for specific handlers how could i deal with?
I will look forward hearing you.
I really appreciate you in advance.
Hello, I have two problems. Firstly, I need to write log and my logger is specific for us.
private readonly ILoggerProvider<GetBalanceQueryHandler> _logger;
GetBalanceQueryHandler is type of the handler and i want to use IRequestPreProcessor.
when i inject ILoggerProvider I cannot get the type of handler.
Note: GetBalanceQueryHandler is a sample and for every scenario is different.
Secondly, I want to write some log for specific handlers how could i deal with?
I will look forward hearing you.
I really appreciate you in advance.