~/talk

You are doing logging in .NET wrong. Let’s fix it

slides:none on file

Shows concrete fixes: stop interpolating or concatenating log text (it allocates strings and boxes values, causing heap pressure and GC pauses), use structured logging with named template parameters so IDs and statuses are searchable, prefer C#10 string interpolation handlers or the LoggerMessage source generator to avoid unnecessary boxing, tune category log levels (default to warning for noisy frameworks), and use Serilog/Application Insights/Datadog appropriately — these changes measurably cut allocations and reduce latency.

AI-written summary · about

  1. 0:00Introduction
  2. 3:14Why this talk exists
  3. 7:26String interpolation cost in logging
  4. 13:10Stack vs heap in .NET
  5. 17:42Heap allocations and performance
  6. 21:11Excessive logging strings
  7. 24:42Structured logging
  8. 28:59Avoid boxing for log levels
  9. 35:00Logger source generators
  10. 38:57Custom interpolation dangers
  11. 41:48Log level tuning
  12. 45:21Logging only what’s necessary for a good story
  13. 46:23Optimization myths
  14. 49:09Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.