We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [log4net]

For questions specifically related to Sitecore's implementation with and use of log4net. This tag should not be used for general log4net questions that are not specific to Sitecore.

Filter by
Sorted by
Tagged with
3
votes
1answer
49 views

Is it possible to create a patch config file for log level?

I've created this patch file for a Sitecore 9 instance, but looking at showconfig.aspx it has had no effect. The config file name begins with a 'z' to try to ensure it's processed last. <?xml ...
1
vote
0answers
21 views

Custom ApplicationInsights LogAppender - Log4net [closed]

I have developed a custom log appender to send exceptions to Application Insights. The problem is that some exceptions show on the AI protal (Azure) but some other exceptions don't. Anyone had similar ...
3
votes
1answer
85 views

How to generate site specific log file in multi site scenario?

By default only one log file is created in multi-site scenario also. We have come across requirement to generate log file as per site i.e. each site have its own log file. So it'll easy to debug and ...
0
votes
0answers
29 views

create new logs after specific interval of time

I want to create my default Sitecore logs after a specific interval of time without deleting the old ones after every 5 minutes , also whenever the limit exceeds to 10mb (default maximum file size) , ...
1
vote
1answer
230 views

Use Seq for logging with log4net instead of text file

Using Sitecore 8.2. I want to log to SEQ instead of a standard file for the Sitecore log. Since Sitecore uses log4net, I've been looking at this documentation: https://docs.getseq.net/docs/using-...
4
votes
2answers
959 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. ...
0
votes
1answer
199 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 ...
0
votes
1answer
4k views

Log4net not inserting record into database

I am using the Log4Net to insert errors into MSSQL. However, the errors are not being logged into the database. Log4net Patch File - z.Logging.config <?xml version="1.0" encoding="utf-8" ?> &...
7
votes
3answers
4k 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 ...
6
votes
2answers
1k 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 ...
6
votes
2answers
810 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 ...
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 ...