All Projects → edwinf → log4net---ELMAH-Appender

edwinf / log4net---ELMAH-Appender

Licence: other
This appender will allow log4net to be configured to send log messages to ELMAH directly. This way ELMAH can be the log manager of record for sites while still allowing specific logging parameters to be controlled with log4net as usual.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to log4net---ELMAH-Appender

linuxconsole
http://sourceforge.net/projects/linuxconsole/
Stars: ✭ 21 (+40%)
Mutual labels:  unmaintained
cleopatra
INACTIVE - http://mzl.la/ghe-archive - UI for the gecko profiler
Stars: ✭ 26 (+73.33%)
Mutual labels:  unmaintained
b2g-installer
DEPRECATED - Tools to easily flash b2g on your android phone
Stars: ✭ 27 (+80%)
Mutual labels:  unmaintained
friendlycode
INACTIVE - http://mzl.la/ghe-archive - World's friendliest HTML editor.
Stars: ✭ 47 (+213.33%)
Mutual labels:  unmaintained
slim-pickins-jekyll-theme
A minimal Jekyll theme
Stars: ✭ 42 (+180%)
Mutual labels:  unmaintained
fx-share-addon
INACTIVE - http://mzl.la/ghe-archive - new addon version from fx-share branch
Stars: ✭ 13 (-13.33%)
Mutual labels:  unmaintained
quality.mozilla.org
INACTIVE - http://mzl.la/ghe-archive - Mozilla's quality assurance community
Stars: ✭ 14 (-6.67%)
Mutual labels:  unmaintained
learning-networks
INACTIVE - http://mzl.la/ghe-archive - This repo is for tracking initiatives of the Mozilla Learning Networks team.
Stars: ✭ 12 (-20%)
Mutual labels:  unmaintained
MineCloud
Unmaintained. Please do not use anymore.
Stars: ✭ 19 (+26.67%)
Mutual labels:  unmaintained
webdev-bootcamp
INACTIVE - http://mzl.la/ghe-archive - How to be a Web developer at Mozilla
Stars: ✭ 57 (+280%)
Mutual labels:  unmaintained
socialapi-dev
DEPRECATED - Experimental support for a Social API in Firefox
Stars: ✭ 41 (+173.33%)
Mutual labels:  unmaintained
radix62
Base 10 ↔ Base 62 conversions.
Stars: ✭ 16 (+6.67%)
Mutual labels:  unmaintained
passion
An object-oriented LÖVE game engine
Stars: ✭ 35 (+133.33%)
Mutual labels:  unmaintained
devroadshow2017
INACTIVE - http://mzl.la/ghe-archive - Mozilla's Developer Roadshow 2017
Stars: ✭ 16 (+6.67%)
Mutual labels:  unmaintained
crm114.rb
[Retired] Ruby interface to the CRM114 Controllable Regex Mutilator.
Stars: ✭ 29 (+93.33%)
Mutual labels:  unmaintained
data-act-pilot
This small DATA Act pilot contains code that translates agency data to a uniform DATA act format.
Stars: ✭ 20 (+33.33%)
Mutual labels:  unmaintained
mortar-layouts
INACTIVE - http://mzl.la/ghe-archive - A small library for constructing app UIs with backbone.js.
Stars: ✭ 19 (+26.67%)
Mutual labels:  unmaintained
dullard
*UNMAINTAINED* A lightweight, fast XLSX reader
Stars: ✭ 38 (+153.33%)
Mutual labels:  unmaintained
JSComplexity.org
MOVED TO: escomplex/JSComplexity.org --
Stars: ✭ 21 (+40%)
Mutual labels:  unmaintained
i2c-tools
DEPRECATED - git conversion of http://lm-sensors.org/svn/i2c-tools subversion repo.
Stars: ✭ 34 (+126.67%)
Mutual labels:  unmaintained

log4net---ELMAH-Appender

This appender will allow log4net to be configured to send log messages to ELMAH directly. This way ELMAH can be the log manager of record for sites while still allowing specific logging parameters to be controlled with log4net as usual.

Sample Log4net config:


<log4net>
    <appender name="elmahappender" type="elmahappender_log4net.ELMAHAppender, elmahappender_log4net">
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [thread] %-5level %logger - %message%newline" />
      </layout>
      <UseNullContext>False</UseNullContext>
    </appender>
    <root>
      <level value="ALL" />
      <appender-ref ref="elmahappender" />
    </root>
  </log4net>
  

My elmah config:


  <elmah>
    <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="connString" applicationName="TTDev" />
  </elmah>
  

For the sql error log, I had to put the application name on the config. For v1 I could not figure out how to pass the application name through the log4net log, it would ignore what I passed as the app name and just insert an empty string. The application not matching caused the display handler to not display those log entries. Setting the application name in the configuration entry above solved that problem.

This problem did not present itself with the in memory log.

New for 1.0.2: A new setting was also added called UseNullContext. This is used when you want to initialize the logger outside of a HTTP request (such as application start).
Please see this issue for more details.

Note: A second nuget package was created with the dependancy for log4net dropped to 1.2.10 and .Net 2.0. There were complications getting both 1.2.10 and 1.2.11 dependencies to work in the same package. That second package can be found Here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].