Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [logging]

For questions related to logging in Sitecore, typically covering log4net, log tools and readers, and other related logging features, configuration and code

1
vote
1answer
45 views

Sitecore Log4net RollingFileAppender not working

I've trying to implement RollingAppender for general log files in sitecore 8.1 update 2 solutions. The moment I change below <appender name="LogFileAppender" type="log4net.Appender....
3
votes
0answers
41 views

Log file not updated

I am running Sitecore 9 and am experiencing moments when the Sitecore log is no longer updated (i.e. written to). I have a default log4net configuration. Only addition I have is a rolling log file ...
1
vote
1answer
38 views

“WARN Request is redirected to document not found page” message shown in the log file

I have configured CD server according to the official document and spreadsheet and also disabled anonymous IIS access to admin, login, shell folders and default.aspx file. However, after changing IIS ...
1
vote
0answers
24 views

Error message “loading hook” for content search

I have configured two Sitecore servers (CM and CD) using Sitecore 8.2.7. On CD server, Sitecore page is properly shown on the browser but there is a error message shown in the log folder as shown ...
0
votes
1answer
84 views

HttpException on Sitecore logs

I have been working with Sitecore version 8.2, with three to four sites in one instance. Everything work fine, but in logs the following errors are seen. ERROR Application error. Exception: System....
3
votes
1answer
86 views

Accessing log files in application insights for Sitecore 9 in Azure app service

I've been reading several blog posts about application insights and Sitecore logs, and I've not been able to get the proper configuration working. This is using Sitecore 9 ARM templates on Azure app ...
1
vote
4answers
107 views

Sitecore custom log file is empty

Please help me what am missing in writing log for the exception. Always am getting an empty file Logger in Sitecore.Config <?xml version="1.0" encoding="UTF-8"?> <log4net> <...
1
vote
1answer
198 views

Create One Custom Log file for each day in Sitecore Custom Log

I am using below configuration for log4net appender to log entries into Custom log file. The requirement is to have one log file for one day and all logs should append to this one file. <appender ...
0
votes
0answers
57 views

Sitecore audit trail not working

We implemented Sitecore audit trail in our Sitecore application. We followed the procedure mentioned in following page http://klpatil.github.io/Sitecore-Audit-Trail/ but any changes made to content in ...
4
votes
1answer
862 views

Could not create Appender [AdoNetAppender] of type [log4net.Appender.AdoNetAppender, log4net] error

I'm trying to patch an AdoNetAppender using the log4net.Appender.AdoNetAppender, log4net appender by doing the following: <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="...
0
votes
1answer
41 views

How to automate analyzing log files?

I am aware of log analyzer. But instead of selecting files manually one by one and analyzing has any one automated analyzing all the files for errors, if so how ?
4
votes
0answers
60 views

How to automatically clean up Commerce Engine log files?

Today we had a server go down because Commerce Engine filled up the disk space with log files. How can we configure it to automatically delete older log files? We're on Sitecore Commerce 8.2.1.
1
vote
1answer
412 views

How/Why would the scheduler website be getting redirected to the 404 page?

Looking at the log file on our CM server, I noticed that there are a lot of warnings getting logged as follows: 6128 00:01:09 WARN Request is redirected to document not found page. Requested url: /...
10
votes
1answer
694 views

Sitecore PaaS Log files missing

Currently, We are on Sitecore PaaS. There are some issues and we are not able to find out the root cause of those issues. We tried to find out some clues in Sitecore log file but We noticed that there ...
6
votes
2answers
332 views

Filter standard Sitecore log messages into separate logs

We would like to make the main Sitecore log file more clean,and filter away all the unnecessary information that makes finding errors and other relevant information harder. After upgrading to Sitecore ...
4
votes
2answers
641 views

How to log service layer exceptions in Sitecore log files?

The solution is having two projects Web and Service Layer. Service Layer do not have any dependency with Sitecore. However the exceptions needs to be logged into Sitecore log files in data folder. ...
5
votes
2answers
456 views

How can I flush the logfile?

So I have a small snippet of code. string requestedUrl = args.Context.Request.Url.AbsoluteUri; Log.Warn($"Requested Url: '{requestedUrl}' being checked.", this); var redirectTarget = _redirector....
0
votes
2answers
415 views

Custom logging in Sitecore 8.2 update 4

I would like to implement custom logging in my sc8.2u4 instance. The patch config has this code. When I browse CMS it gives the error - Could not find configuration node: watchers/media/folder I ...
8
votes
2answers
989 views

Log file warning about caching and DefaultScavengeStrategy

I see a ton of these warnings in my Sitecore log file, using 8.2 Update 3: 5304 01:57:06 WARN web[isLanguageFallbackValid] cache is cleared by Sitecore.Caching.Generics.Cache`1+...
0
votes
0answers
45 views

Add feature to Audit Trail Module to store value of Changed Item

I am trying to add a feature on this module - http://klpatil.github.io/Sitecore-Audit-Trail/ so that I can store the old and new changed value of the Sitecore Item in the Logs Table. But I am not ...
4
votes
2answers
159 views

Huge Search.Log due to List Manager (while using EXM)?

Our Search.Log files are becoming huge (50-100 MB daily). In it I can see a large amount of queries regarding Contacts and Contactlists to analytics index that run 24/7. Query - (type_t:(contact) ...
0
votes
1answer
149 views

Logging from Application Start Event

I have added the following code to my Application Startup, but the INFO is not showing up in my logs. Sitecore 7.5 Is this code being called at all? If not, what am I doing wrong? public class ...
5
votes
4answers
2k views

Sitecore.Diagnostics.Log.Error() method is not working Inside a Static Class

I typically do my error logging like this: Sitecore.Diagnostics.Log.Error("My Error Message Here", ex, this); But, that same syntax does not work for inside a Static class since this is not valid in ...
7
votes
1answer
2k views

Handle all Custom Errors in Sitecore MVC

I've edited a patched a pipeline using the following bit of code. <sitecore> <pipelines> <mvc.exception> <processor type="Sitecore.Mvc.Pipelines.MvcEvents.Exception....
0
votes
1answer
371 views

What does the “WARN: Crawling Stopped” warning mean?

Why do my logs fill up with warnings about Crawling Stopped? Is this indicating some sort of problem that I need to address? 5088 00:00:01 WARN [Index=sitecore_core_index] Crawling Stopped 5088 00:...
4
votes
2answers
79 views

How can I determine when a shared/unshared background process has finished?

In Sitecore (I'm specifically working with version 7.5 right now, but I believe this applies to other versions), when you mark a field as shared or unshared, you receive a popup that a lengthy ...
1
vote
1answer
226 views

Creating Event Handler for Sitemap XML for Logging

I am trying to debug a publishing problem with the Sitemap XML module. Publishing XML Sitemaps to Two Content Delivery Servers Someone suggested creating a simple event handler that does a Log.Info("...
7
votes
3answers
2k views

Change the name of the output log file

I am trying to modify the output name that is defined by appender in "Sitecore.config" <file value="$(dataFolder)/logs/log.{date}.txt"/> specifically {date} Every time I start a new instance ...
2
votes
1answer
339 views

Sitecore Custom Logger where each item represents its own log file

There are many articles how to create your own logger and save a log file into a separate folder. I need something else. My items represent the processors. It means I can click the button on the ...
6
votes
2answers
718 views

Logging Changes in Sitecore 8.1 Made by Content Authors

I would like to capture more log info from Sitecore Logging. Changes such as what exactly was edited, what text changes were added or removed. Which images were added and so on. Has anyone done ...
3
votes
1answer
254 views

Get last time job ran date/time

I have a very basic question and only because I haven't been able to find any reference or source for it. In Sitecore, how can I programmatically get the last run date/time of a job that is ...
0
votes
1answer
319 views

Sitecore Logging into azure blog storage in JSON format

We have a requirement to log all the errors/warnings on to Azure Blog Storage in JSON format (with specific structure) including the sitecore generated ones. This will enable us to use any third ...
7
votes
1answer
2k views

xDB - Cannot finish Analytics page tracking

I have the following exception appearing in my log files at a rate of 2-3 per second. ERROR Cannot finish Analytics page tracking Exception: Sitecore.Analytics.Exceptions.ContactLockException ...
6
votes
2answers
650 views

How can I split logs by log level/priority

I know that logs have the following levels from lowest to highest: DEBUG INFO WARN ERROR FATAL And that the <priority> of each log sets the minimum log level for messages that will be ...
3
votes
2answers
300 views

One CD in Two-CD Cluster Not Writing Logs

I have a CD environment in a two-CD cluster running Sitecore 8.1u2, and today I noticed that my CD2 environment is not writing to its logs, even though it is running exactly as expected. I verified ...
9
votes
1answer
550 views

How/Why would the scheduler website log attempts to access it's home page?

Looking at the log file on our CD server, I noticed that there are loads of warnings getting logged every millisecond for a document not found redirect for the home page of the scheduler website: ...
7
votes
3answers
2k views

Sitecore Logging (Log4Net) Log to Database as Well as Text Files

Sitecore 7.5 The text file logging is working fine. But, I would like the logging to go to a SQL Server database so that I can search the data with T-SQL. How would I do that? I imagine it would be ...
8
votes
2answers
406 views

Sitecore log analyzer supported on latest versions?

I noticed that the Sitecore Log Analyzer on market place does not say anything about the latest Sitecore versions and whether it is supported or not. I have used it on 8 and it was working fine but ...
12
votes
2answers
2k views

GeoIP-related error in my log files, but GeoIP not enabled

I have the following error showing up in my log file: ManagedPoolThread #8 16:51:28 WARN Authentication on CES Discovery service failed. Exception: System.Net.WebException Message: The remote ...
5
votes
3answers
362 views

WARN Could not register counter in HealthMonitor warnings in logs

I'm seeing a ton of these messages in my logs all the time. How can I clear them up? Heartbeat 13:07:35 WARN Could not register counter in HealthMonitor. Category: .NET CLR Memory, Name: # Bytes ...