sbohlen / common-logging-elmah Goto Github PK
View Code? Open in Web Editor NEWCommon.Logging.Elmah (unofficial)
Common.Logging.Elmah (unofficial)
When using the Common.Logging system to write log entries from code, the Host name is not written to the ELMAH log. The Host is present for entries logging exceptions that were trapped via ELMAH's native mechanism.
All logged entries should include the Host information, which can be very important when troubleshooting issues in a load-balanced environment.
I'm having trouble making this work for the latest version of Common.Loggin, I keep getting the exception:
System.MissingMethodException: Constructor on type 'FieldCap.Business.Exceptions.ElmahLoggerFactoryAdapter' not found
[MissingMethodException: Constructor on type 'FieldCap.Business.Exceptions.ElmahLoggerFactoryAdapter' not found.]
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1136
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
System.Activator.CreateInstance(Type type, Object[] args) +19
Common.Logging.<>c__DisplayClassa.<BuildLoggerFactoryAdapterFromLogSettings>b__9() in c:_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:425
Common.Logging.Configuration.<>c__DisplayClass5.<Guard>b__4() in c:_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:292
Common.Logging.Configuration.ArgUtils.Guard(Function`1 function, String messageFormat, Object[] args) in c:_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:318
[ConfigurationException: Unable to create instance of type FieldCap.Business.Exceptions.ElmahLoggerFactoryAdapter. Possible explanation is lack of zero arg and single arg NameValueCollection constructors]
Common.Logging.Configuration.ArgUtils.Guard(Function1 function, String messageFormat, Object[] args) in c:\_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:330 Common.Logging.Configuration.ArgUtils.Guard(Action action, String messageFormat, Object[] args) in c:\_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:290 Common.Logging.LogManager.BuildLoggerFactoryAdapterFromLogSettings(LogSetting setting) in c:\_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:418 Common.Logging.<>c__DisplayClass7.<BuildLoggerFactoryAdapter>b__6() in c:\_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:394 Common.Logging.Configuration.<>c__DisplayClass5.<Guard>b__4() in c:\_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:292 Common.Logging.Configuration.ArgUtils.Guard(Function
1 function, String messageFormat, Object[] args) in c:_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:322
Common.Logging.Configuration.ArgUtils.Guard(Action action, String messageFormat, Object[] args) in c:_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:290
Common.Logging.LogManager.BuildLoggerFactoryAdapter() in c:_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:392
Common.Logging.LogManager.get_Adapter() in c:_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:176
JSNLog.LogHandling.LoggerProcessor.ProcessLogRequest(String json, String userAgent, String userHostAddress, DateTime serverSideTimeUtc, String url, String requestId) +159
JSNLog.LoggerHandler.ProcessRequest(HttpContext context) +275
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
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.