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.
Questions tagged [common.logging]
87 questions
1
vote
1 answer
Common.Logging C# correct invocation procedure
While using C# Common.Logging, the current logging set up is such that the _logger is declared as below in the beginning of every class that the _logger is used.
private static readonly ILog _logger = LogManager.GetCurrentClassLogger();
Is this the…

Sartorial
- 173
- 1
- 8
1
vote
1 answer
PostSharp and Common.Logging Logger declaration
I'm using OnMethodBoundryAspect to create a simple logging and execution timing aspect. I would like to create a logger per method. however, if the Logger is not declared as static member it doesn't work. it's impossible to create a logger per…

Amr Ellafy
- 730
- 8
- 26
1
vote
0 answers
wcf with common.logging issue
Interesting issue I'm trying to solve.
So here we have got simple wcf service running on iis7. Code related to common.logging look like:
using Common.Logging;
private static readonly ILog log = LogManager.GetCurrentClassLogger();
log.Error("Opened…

Oleg Yaroshevskyy
- 53
- 6
1
vote
1 answer
Why NServiceBus.NHibernate causes CodeAnalysis warning regarding Common.Logging reference?
I have an NServiceBus endpoint configured to UseNHibernateTimeoutPersister.
I use EL 5 for logging:

MsftNetDeveloper
- 13
- 3
1
vote
2 answers
'LogManager' is an ambiguous reference between .LogManagers
I am getting the error message,"Error 19 'LogManager' is an ambiguous reference between 'Common.Logging.LogManager' and 'NLog.LogManager'".
In a C# 2008 application I am trying to add nlog open source logging tool to an application that is already…

user1816979
- 511
- 4
- 13
- 25
1
vote
2 answers
Unable to set EventIDs using Common.Logging and NLog
Has anyone figured out how to leverage Common.Logging to set the EventLog ID when wrapping NLog? I have it working beautifully under NLog, but had trouble figuring out how to do it with Common.Logging. Note that I can also use Common.Logging with…

Robert Bernstein
- 783
- 12
- 18
0
votes
0 answers
Unable to capture logs with Quartz, Common.Logging and Log4Net in .Net
I am using Visual Studio 2019, and these are the versions I have:
Common.Logging: 3.2.0.0
Log4Net: 2.0.8.0
Quartz: 2.3.3.0
The line of my code where errors appear is this:
programador = fProgramacion.GetScheduler();
The errors are…

Roberto CF
- 1
- 1
0
votes
3 answers
NServiceBus Generic Host and Common.Logging
Folks,
I got NServiceBus logging working correctly following the directions found here:
http://docs.particular.net/nservicebus/logging/
However, I am using Common.Logging. If I use the LogManager for Common.Logging, it doesn't log.
If I use the…

CubanX
- 5,176
- 2
- 29
- 44
0
votes
1 answer
Unable to schedule tasks by Quartz.NET
Here is the main procedure for scheduling an output task
Public Sub ScheduleOutput()
Dim sf As ISchedulerFactory = New StdSchedulerFactory()
Dim scheduler As IScheduler = sf.GetScheduler()
scheduler.Start()
Dim job As…

Ursidae
- 87
- 9
0
votes
1 answer
iText7 unable to setup logging
I'm trying to use PdfCleanUpTool with iText7.
However my final PDF is corrupted (it is only 15B in size).
When I start my console app from VS I get this in Output:
no configuration section found - suppressing logging output
I'm trying to setup…

Misiu
- 4,738
- 21
- 94
- 198
0
votes
1 answer
C# DLL - Loading seperate app.config file for Common.Logging (Log4Net)
I am busy working on a C# library and I would like to make use of the Common.Logging with Log4Net, however, it looks for in the host applications app.config file for respective libraries settings.
Is there anyway of telling Common.Logging to look at…

KSS
- 337
- 3
- 10
0
votes
1 answer
ASP.NET Core Dependency injection for Common.Logging
I want to be able to configure ASP.NET's dependency injection framework to be able to resolve me an instance of Common.Logging's ILog interface. Creating an instance of ILog is done via the Common.Logging's static LogManager.GetLogger methods which…

Dav Evans
- 4,031
- 7
- 41
- 60
0
votes
3 answers
Common.Logging.NLog not available for net core?
I'm currently using Common.Logging version 3.4.0-beta2 and NLog 5.0.0-beta07 on netcoreapp1.1. (its and ASP Net Core mvc project)
I cannot find Common.Logging.NLog specific version for that case.
In case it is not yet available, which log file…

Jawen
- 1,416
- 1
- 14
- 26
0
votes
1 answer
WriteInternal not called in Common.Logging AbstractLogger derivative
I am trying to get Common.Logging to call my custom logger, but WriteInternal is never called. Did I miss a configuration somewhere? In my ASP.NET Owin project, Startup.cs has
LogManager.Adapter = new…

tofutim
- 22,664
- 20
- 87
- 148
0
votes
1 answer
Exception in Common.Logging.dll: Failed obtaining configuration for Common.Logging from configuration section 'common/logging'
Before you wonder, I've read the
Similar Topic
and tried renaming the 'Common.Logging.Log4Net' in factory adapter-Tag in app.config but this didn't help me. Also I tried commenting out the startup-Tag and runtime-Tag.
So I've downloaded the…

user26026
- 27
- 9