Тёмный
No video :(

.NET logging: Setup, configure and write a log with ILogger (uses .NET Core) 

Round The Code
Подписаться 9 тыс.
Просмотров 51 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@akshorts4862
@akshorts4862 16 дней назад
very well explained, I have little issue with pronunciation and accent as I am from different country, but very nice information, sir !!
@RoundTheCode
@RoundTheCode 8 дней назад
Glad it was helpful!
@edward_t450
@edward_t450 Год назад
Great content. God bless.
@RoundTheCode
@RoundTheCode Год назад
Thanks for the comment. Glad you enjoyed.
@sanjay-narod
@sanjay-narod Год назад
Nice informative video 👍
@RoundTheCode
@RoundTheCode Год назад
Thanks a lot Sanjay.
@purplepanther4153
@purplepanther4153 Месяц назад
Nlog does a good job. and easy.
@RoundTheCode
@RoundTheCode Месяц назад
Serilog also does a good job.
@Al-lw2gy
@Al-lw2gy 11 месяцев назад
Thanks
@RoundTheCode
@RoundTheCode 11 месяцев назад
No problem
@robertofernandezantunez6008
@robertofernandezantunez6008 2 года назад
Great video!!! Im trying to add a field to the log, using the ILogger provider, any idea?
@RoundTheCode
@RoundTheCode 2 года назад
What field are you trying to add? And where?
@Al-lw2gy
@Al-lw2gy 11 месяцев назад
it would be nice if you showed how to write log data to a file
@RoundTheCode
@RoundTheCode 11 месяцев назад
This video will help you: ru-vid.comI3tlCn5J9pA?feature=share
@ngoannguyen3758
@ngoannguyen3758 10 месяцев назад
Please! i can get source code project logging ?
@cesarrodriguez1399
@cesarrodriguez1399 2 года назад
Great video... How do you go about logging in a hosted service? I know you did a recent video about hosted services, just wondering how you can pass the logger to the hosted service.
@RoundTheCode
@RoundTheCode 2 года назад
Hi Cesar. Thanks for your comment. All you need to do is inject the ILogger type as a parameter into the Hosted Service constructor. You can then set its instance as a local variable within the Hosted Service and use the extension methods to log.
@cesarrodriguez1399
@cesarrodriguez1399 2 года назад
@@RoundTheCode thanks for the reply. I tried that but the ilogger in the constructor of the hosted service had a generic type of the hosted service class. So I ended up injecting an iloggerfactory and passing it as a parameter. Just got it working now. And from the iloggerfactory I can create a logger with the type of the current class. But thanks for the help.
@kupchinsky
@kupchinsky Год назад
Hmmm, log to console (instead of file) - strange example for Web application
@RoundTheCode
@RoundTheCode Год назад
Here is information on how you can write to a file: www.roundthecode.com/dotnet/create-your-own-logging-provider-to-log-to-text-files-in-net-core
@afrashtehmohammad
@afrashtehmohammad Год назад
iLogger to Windows Event Log Viewereeeeeeeeeeeeer?
@RoundTheCode
@RoundTheCode Год назад
Take a look at this StackOverflow thread and see if it answers your question: stackoverflow.com/questions/59173671/how-to-write-logs-to-eventlog-by-iloggert-in-asp-net-core
@purplepanther4153
@purplepanther4153 Месяц назад
Aspnet .core logging suck no offense. its not straight forward when u want to log a file.
Далее
You are doing .NET logging wrong. Let's fix it
25:29
Просмотров 172 тыс.
Секрет фокусника! #shorts
00:15
Просмотров 32 млн
Wife habit 😂 #shorts
00:16
Просмотров 62 млн
Brutally honest advice for new .NET Web Developers
7:19
Secure a .NET Core API with Bearer Authentication
1:06:56
The Logging Everyone Should Be Using in .NET
15:34
Просмотров 61 тыс.
High-performance logging in .NET, the proper way
15:56
Секрет фокусника! #shorts
00:15
Просмотров 32 млн