Common Logging adapter for Log4Net
mperdeck / common.logging.log4net.universal Goto Github PK
View Code? Open in Web Editor NEWCommon Logging adapter for Log4Net
License: Apache License 2.0
Common Logging adapter for Log4Net
License: Apache License 2.0
Can you add support for .NET 4.5.1?
For the moment the lowest supported version is .NET 4.6.1
Because of this, I can not use this package in my project, which is at version 4.5.1
Hi
I am trying to use the Common.Logging.Log4Net.Univeral to get everything talking to the latest version of Log4Net - currently 2.0.7
<factoryAdapter type="Common.Logging.Log4Net.Universal.Log4NetFactoryAdapter, Common.Logging.Log4Net.Universal"/>
I've noticed from the Common.Logging.Log4Net.Universal source code (and errors!) that the new factory adapter does not take any constructor arguments.
My previous setting here was like this:
<factoryAdapter type="Common.Logging.Log4Net.Universal.Log4NetFactoryAdapter, Common.Logging.Log4Net1215">
<arg key="configType" value="INLINE"/>
<arg key="level" value="ALL" />
</factoryAdapter>
So, previously, I would then detail the log4net settings in the same config file.
Now that the Universal adapter takes no parameters, I'm unable to get any logging happening. The inline log4net config isn't picked up.
Does anyone know how I can tell the new adapter where to get its logging config from?
Julian
HI,
Before using Log4Net.Universal we were using Logging.Log4net1213 and in that we were using custom properties for passing values to the AdoNetAppender. This used to work perfectly. But now since we have changed to Log4Net.Universal we started using GlobalVariablesContext.Set(..) for passing values to the AdoNetAppender because CustomProperties doesn't exist. Unfortunately now those values are coming as null and throwing up error during logging. There is also no documentation that i am aware of for Log4Net.Universal. Please let me know how to fix this.
Previuos Version :- Common.Logging, Version=2.2.0.1, Common.Logging.Log4Net1213
Current Version :- Version=3.3.1.0 Common.Logging.Core, Common.Logging & Common.Logging.Log4Net.Universal.1.0.1
Thanks,
Queston02
Please ignore this as I posted in the wrong area.
Hi,
I have updated all my Nuget packages and something has broken the Jsnlog logging. My backend logging continues to work but not my logging from my .js files.
I noticed this error in an Application Insights log:
"message": "Could not load file or assembly 'Common.Logging.Log4Net.Universal' or one of its dependencies. The system cannot find the file specified.",
but it is in my packages folder:
The full error message, packages.config and the web.config are attached.
I have spent half a day researching this and I have not found a solution. Your help will be appreciated.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.