Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# HttpClient POST or PUT Json with content type application/json
- Creating dynamic arrays and lists using Dynamic and ExpandoObject in C#
- Using C# HttpClient from Sync and Async code
- Run tasks in parallel using .NET Core, C# and async coding
- C# Get expiry timestamp from JWT token
- c# Async fire and forget
- HttpClient retry mechanism with .NET Core, Polly and IHttpClientFactory
Archive
Meta
Tag Archives: Log4Net
Sitecore and Application Insights – How to remove 90% of all log lines without sacrificing traceability
In this article I will explain how you can remove up to 90% of all log lines from the Application Insights log, but still keep every log line in the file log. All of this without loosing any important information. … Continue reading
Posted in Microsoft Azure, Sitecore 8, Sitecore 9
Tagged Application Insights, Azure, Log4Net, Logging, Microsoft Azure, Sitecore
2 Comments
Sitecore logging – Create new log file every day
Sitecore have since forever used Log4Net as it’s logging platform. Log4Net is nicely extensible and can be configured to log in many ways. As per default, Sitecore is configured to start writing to a new log file every time Sitecore … Continue reading
Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Log4Net, Logging, Sitecore
3 Comments
Sitecore remove “Job started” and “Job ended” from log files
In large Sitecore installations with many background tasks you will find the following log lines over and over again: ManagedPoolThread #1 10:26:05 INFO Job started: xxxxx ManagedPoolThread #5 10:26:05 INFO Job ended: xxxxx (units processed: ) This is the Sitecore … Continue reading
Posted in Sitecore, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Agent, Job, Log4Net, Sitecore
1 Comment
Using the Sitecore Audit Log
I guess your code contains just as many log messages as my code does: And the exception is written to the log: In previous versions, the Audit log was a seperate log. But now it’s all handled by Apache Log4Net. So … Continue reading