Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Port current implementation to ILogger #3173

Merged
merged 8 commits into from
Jun 7, 2023
Merged

Port current implementation to ILogger #3173

merged 8 commits into from
Jun 7, 2023

Conversation

stishkin
Copy link
Contributor

@stishkin stishkin commented Jun 7, 2023

Moving to ILogger, as discussed in meetings several times

  1. ILogger is the de-facto interface for logging

  2. This implementation also changes how "message" is formatted. Now full message is written out instead of formatting template, and formatting template is saved as part of Custom Dimensions

  3. Using formatting template will improve memory performance compared to previous implementation

  4. Due to AppInsights is still not fully baked implementation where we can have more control over it in Azure Functions. We can only support one destination to write out AppInsights. Attempting to use more than one App Insights destination - will only write data out into the first registered AppInsights

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2023

Codecov Report

Merging #3173 (e25e8e3) into main (8e2e11f) will decrease coverage by 0.03%.
The diff coverage is 10.08%.

@@            Coverage Diff             @@
##             main    #3173      +/-   ##
==========================================
- Coverage   29.63%   29.61%   -0.03%     
==========================================
  Files         331      332       +1     
  Lines       38773    38885     +112     
==========================================
+ Hits        11492    11516      +24     
- Misses      27281    27369      +88     
Impacted Files Coverage Δ
...ervice/ApiService/Auth/AuthenticationMiddleware.cs 0.00% <0.00%> (ø)
...Service/ApiService/Auth/AuthorizationMiddleware.cs 0.00% <0.00%> (ø)
...piService/ApiService/Functions/AgentCanSchedule.cs 0.00% <0.00%> (ø)
...c/ApiService/ApiService/Functions/AgentCommands.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/Config.cs 0.00% <0.00%> (ø)
.../ApiService/ApiService/Functions/InstanceConfig.cs 0.00% <0.00%> (ø)
...c/ApiService/ApiService/Functions/NodeAddSshKey.cs 0.00% <ø> (ø)
...c/ApiService/ApiService/Functions/Notifications.cs 0.00% <0.00%> (ø)
...iService/ApiService/Functions/NotificationsTest.cs 0.00% <0.00%> (ø)
src/ApiService/ApiService/Functions/Pool.cs 76.63% <ø> (ø)
... and 86 more

@stishkin stishkin requested a review from chkeita June 7, 2023 18:55
@stishkin stishkin merged commit f724741 into main Jun 7, 2023
@stishkin stishkin deleted the ilogger branch June 7, 2023 19:11
@stishkin stishkin linked an issue Jun 7, 2023 that may be closed by this pull request
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port logging to ILogger
3 participants