Questions tagged [common.logging]

Common Logging is an Apache project that provides a consistent interface for Logging Implementations in Java. It has been ported to .NET as a SourceForge project.

87 questions
5
votes
4 answers

NLog and Common.Logging nightmare

So I have tried everything I can find to get these two to play together. I have installed the nuget package Common.Logging.NLog20, My config looks like:
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
5
votes
1 answer

Common logging log4net file-watch

I want to use a Common.logging and log4net on project wrapper, i created a log4net.config file on my logging project and i configured my web.config file but i got an exception when i try to log anything (error, info, etc). I thought the problem is…
elchente23
  • 163
  • 5
  • 13
5
votes
2 answers

common.logging - Redirect found in application configuration file

I added common.logging.log4net to my visual studio 2012 solution via nuget. common.logging.log4net ver. - 2.0.1 common.logging ver. - 2.0.0 log4net - ver. 1.2.10 When I build/run it locally, I see the following exception via browser: Could not…
mrvllus
  • 149
  • 2
  • 12
4
votes
1 answer

Common.Logging for TraceSource

I am trying to adopt Common.Logging in our application, however I am having some trouble setting it up with system.diagnostics. It works with straight up Trace, but not TraceSource. I was using Common.Logging.Simple.TraceLoggerFactoryAdapter. Do i…
Eatdoku
  • 6,569
  • 13
  • 63
  • 98
4
votes
1 answer

How can I understand if a logger exists in common logging?

I use Common.Logging in my application and I created a separate logger to write some debug info. I can retrieve my logger using LogManager.GetLogger("MyCustomLogger"); However, if this logger is not found I get the root one. I wish that if the…
Phate01
  • 2,499
  • 2
  • 30
  • 55
4
votes
3 answers

How to enable Common.Logging.Log4Net

I am trying to enable Common.Logging.Log4Net to write all types of logs to a log file. The tutorials make it look so simple but I don't know what I am doing wrong. These are the steps I am taking: Create a new ASP.NET MVC empty project Install the…
user11081980
  • 3,059
  • 4
  • 30
  • 48
3
votes
2 answers

log4net log file not been written using Quartz.net + Common.Logging

I'm trying to add logging to my windows web service built with Quartz.net using common.logging to write a log file with log4net. My App.config looks like this:
Martinffx
  • 2,426
  • 4
  • 33
  • 60
3
votes
2 answers

Structured logging with Common.Logging and NLog

I have the latest version of Common.Logging (3.4.1) and NLog (4.5.11) in my project. Instructions were followed to tie up Common.Logging with NLog in the app.config, and logging now works. Now I want to have structured logging: private static…
Michel van Engelen
  • 2,791
  • 2
  • 29
  • 45
3
votes
2 answers

Quartz.net and Common.Logging - Using Log4Net

I'm using Quartz.net within a windows service. Currently, the trigger is not firing - I'd like to use the logging to find out why. I have edited my config file for the windows service:
Alex
  • 37,502
  • 51
  • 204
  • 332
3
votes
1 answer

Support for NLog 2.1

I want to upgrade to Nlog version 2.1. Which version of Common Logging library should I use? I am currently using Common Logging version 2.0 with Nlog 2.0. I replaced NLog v2.0 with 2.1 but it does not work. Any help? I get this error - Failed…
Kavi
  • 33
  • 4
3
votes
3 answers

Dynamically setting a log4net property using common.logging

Does anyone know if there is an equivalent in Common.Logging (for .Net) to set properties for the log4net factory adapter? I have had great success when just using log4net by doing:
Kyle LeNeau
  • 1,038
  • 2
  • 12
  • 19
3
votes
1 answer

Common.Logging without app.config

i am trying to use Common.Logging but we dont use app.config, our parameters are in several xml config files or in a database. How can i Tell Common.Logging to get the factory Adapter from an other file?
Cajon
  • 53
  • 1
  • 4
3
votes
1 answer

Common.Logging support of logging to file.

I was looking through the documentation for common logging and didn't notice any support for writing to a log file outside of leveraging other logging technologies such as Log4Net, Enterprise library, Nlog etc. I just wanted to know if anyone knows…
crackhaus
  • 1,176
  • 1
  • 15
  • 27
3
votes
2 answers

Common.Logging with PostSharp and NLog 2.0

I use Common.Logging as a wrapper around NLog 2.0. I've done this so that I can replace NLog with another logging provider in the future. I also use PostSharp to not write a try catch block everytime I need one. I have a class that inherits the…
Jurgen Vandw
  • 631
  • 8
  • 27
2
votes
1 answer

StackOverflowException with Common.Logging and Common.Logging.Simple.CommonLoggingTraceListener

I'm trying to redirect all log messages from System.Diagnostics.Trace to Common.Logging as documented on the Common.Logging website. Unfortunately when I run my application I get a StackOverflowException and I'm not sure why. If I delete the…
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102