-
Notifications
You must be signed in to change notification settings - Fork 1
Home
CodeTimer provides an easy way to add timing to procedure-style methods. It helps to provides visibility into the cost of individual code segments within a method.
It is a useful diagnostic tool for when you need some extra information about how your code is performing. Ideally, you would use something like Application Insights to capture run-time diagnostics and then delve into your application logs to look at code-timer information when you want to verify segment costs for costly methods and requests.
CodeTimer is not a logger, but it works with the .NET Core ILogger to write Information and Warning (or Error) messages to the log for timed pieces of code. While code-timer can write verbose and non-verbose format messages to a log, you will still need to configure an ILogger in your application alongside other good logging tools such a Serilog so that you can tweak logging settings in different environments.
For further information refer to the Logging page