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
0
votes
1 answer
Can NLog's variables be modified programatically if Common.Logging is in use?
I have an NLog variable that I want to set the value of at runtime, in C#:
LogManager.Configuration.Variables["MyVarName"] = DetermineMyVarValue();
But that's NLog code. I am considering using Common.Logging rather than directly using NLog. I do…

Bob Vesterman
- 1,127
- 1
- 11
- 31
0
votes
0 answers
Common.Logging Issues
The project I am working on WPF project, and the error it gives me when trying to parse the Main xml file is:
Could not load assembly or file 'Common.Logging'.
I installed the reference to Common.Logging from NuGet, but for version 3.4 rather than…

Sean
- 336
- 1
- 3
- 15
0
votes
2 answers
Log4Net + Common.Logging + Azure = Empty log file
I have an Azure worker role that I wish to update the logging (the project had existing logging, although I'm not convinced it was ever working). It is set up to use Common.Logging, but with Log4Net. I have set up 2 appenders in Log4Net -- one to…

REW
- 752
- 2
- 9
- 27
0
votes
1 answer
Common.Logging.NLog32 unable to use NLog 3.2.1.0? On client only?
I'm currently setting up a client server project. My server part is a C# WebAPI project (net45). My client part is a C# WPF project (net45).
For logging I want to use Common.Logging with the Common.Logging.NLog32 adapter.
At first I configured it in…

christoph
- 1,019
- 1
- 12
- 23
0
votes
1 answer
Common.Logging - More Ilog instances
I'm developing a Windows service. I use commong.logging & log4net.
I have properly configured my app.config and I'm logging application events & exceptions to a log file.
Now I have got new requirements. Every customer needs his own log file in his…

Ondro Tadanai
- 123
- 2
- 12
0
votes
1 answer
Windows Service is not logging into log file under special folder
I have created a windows service and i want windows service to log information into log file created under my user profile.I'm using common.logging and in the configuration i have specified my log config as below.

pubudut
- 603
- 2
- 8
- 18
0
votes
1 answer
How can I use NLog to log to a specific database in an API?
In our organization, each customer has their own database, with a respective logging table. How can I configure NLog programmatically so that I can point it at the correct database per customer?
Something like:
var loggerA =…

Paul Coghill
- 667
- 6
- 27
0
votes
0 answers
Common.logging doesn't pick up the App.config in a class library
The class library project has a App.config file as given:
…

jamesdeath123
- 4,268
- 11
- 52
- 93
0
votes
1 answer
Example of using a TraceSource with Common.Logging
I've read this question and I know its possible:
Common.Logging for TraceSource
Can someone please post an example.
Also it could be helpfull if it can be configured to use the TraceSource in code instead of using the .config file.
Thanks

Luis
- 1,840
- 2
- 14
- 14
0
votes
3 answers
Rhino Mocks - using AssertWasCalled on Common.Logging ILog.Debug
I'm having trouble using Rhino Mocks to assert that a method was called (and ideally with a particular parameter). The Method is ILog.Debug(FormatMessageHandler) in Common.Logging 2.0 using the new lamba syntax. It works fine using the old way…

ss2k
- 1,258
- 1
- 13
- 20
0
votes
1 answer
Common.Logging.Nlog is not copied to /testresults/.../out folder
I'm working on an application that logs through common.logging, common.logging.nlog and then nlog. Logging works fine in the application - web.config is OK.
However - when I apply the logging configuration to my App.config of the test project, the…

Jochen van Wylick
- 5,303
- 4
- 42
- 64
0
votes
1 answer
Error in XAML design mode with nLog and Common.Logging
I am getting the following error:
---------------------------
Microsoft Visual Studio
---------------------------
Could not load the assembly Common.Logging.NLog because the following errors occurred:
Could not load type 'NLog.TargetWithLayout'…

John
- 6,503
- 3
- 37
- 58