Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 answer
208 views

what version of log4net is Sitecore.Logging.dll branch/fork based upon?

what version of log4net is Sitecore.Logging.dll branch/fork based upon? There is a locking bug in log4net which affects version 1.2.10 https://issues.apache.org/jira/browse/LOG4NET-298 Which was ...
user avatar
  • 1,072
3 votes
1 answer
507 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 ...
user avatar
1 vote
0 answers
78 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 ...
user avatar
3 votes
1 answer
180 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 ...
user avatar
0 votes
0 answers
142 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) , ...
user avatar
1 vote
1 answer
721 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-...
user avatar
  • 409
4 votes
2 answers
1k 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. ...
user avatar
  • 109
0 votes
1 answer
286 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 ...
user avatar
  • 1,755
1 vote
1 answer
6k 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" ?> &...
user avatar
8 votes
3 answers
7k 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 ...
user avatar
  • 539
6 votes
2 answers
2k 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 ...
user avatar
  • 539
6 votes
2 answers
1k 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 ...
user avatar
8 votes
3 answers
3k 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 ...
user avatar
  • 1,755