Stack Exchange Network

Stack Exchange network consists of 175 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 [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.

1
vote
1answer
62 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
805 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
169 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
3k 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
3k 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
884 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
723 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 ...