The Biggest Lie About the .NET Logger | .NET Tips 7

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
dotnet tips part 7 logging is a fundamental of every application but there is a big problem with it in.net the built-in.net logger refers to the text part of the logging as the message however that is a Lie the text parameter of the logger isn't actually the message but rather the message template if you're using string interpolation string formatting or string concatenation with your logger then you are doing it wrong not only do you lose all the parameters of your logging method making it impossible for you to filter your logs but also you waste a ton of memory in strings that need to be garbage collected slowing your obligation down simply name your parameters with a descriptive name as part of your message template and provide your arguments as a second parameter this prevents all the memory issues and makes filtering a breeze subscribe for more.net tips
Info
Channel: Nick Chapsas
Views: 99,155
Rating: undefined out of 5
Keywords: Elfocrash, elfo, coding, .netcore, dot net, core, C#, tutorial, software engineering, .net core, nick chapsas, chapsas, clean code, dotnet, .net 6 features, shorts, .net 6, .net logging, .net logger, logger in .net, log message, .net log message, .net tips, dotnet tips, The Biggest Lie About the .NET Logger
Id: PvQGVmozCdU
Channel Id: undefined
Length: 0min 48sec (48 seconds)
Published: Wed May 10 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.