Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- Write to file from multiple threads async with C# and .NET Core
- Run tasks in parallel using .NET Core, C# and async coding
- Build .net core 6 projects with Azure Devops using yml files
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
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
3 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
2 Comments
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