Giter VIP home page Giter VIP logo

common-logging-elmah's People

Contributors

cmshawns avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

common-logging-elmah's Issues

ELMAH log does not include Host for non-exception entries

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.

Not working for 2.2.0

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.&lt;&gt;c__DisplayClass7.&lt;BuildLoggerFactoryAdapter&gt;b__6() in c:\_oss\common-logging\src\Common.Logging.Core\Logging\LogManager.cs:394 Common.Logging.Configuration.&lt;&gt;c__DisplayClass5.&lt;Guard&gt;b__4() in c:\_oss\common-logging\src\Common.Logging.Core\Logging\Configuration\ArgUtils.cs:292 Common.Logging.Configuration.ArgUtils.Guard(Function1 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.