Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nlog/nlog.elmah
ELMAH target for NLog
https://github.com/nlog/nlog.elmah
elmah nlog nlog-target
Last synced: 10 days ago
JSON representation
ELMAH target for NLog
- Host: GitHub
- URL: https://github.com/nlog/nlog.elmah
- Owner: NLog
- Created: 2015-04-22T12:03:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T17:27:12.000Z (about 1 year ago)
- Last Synced: 2024-12-02T19:50:56.454Z (about 1 month ago)
- Topics: elmah, nlog, nlog-target
- Language: C#
- Size: 54.7 KB
- Stars: 11
- Watchers: 7
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NLog.Elmah
[![Version](https://badge.fury.io/nu/NLog.ELMAH.svg)](https://www.nuget.org/packages/NLog.ELMAH)
[![AppVeyor](https://img.shields.io/appveyor/ci/nlog/nlog-Elmah/master.svg)](https://ci.appveyor.com/project/nlog/nlog-Elmah/branch/master)ELMAH target for NLog
Extensions to [NLog](https://github.com/NLog/NLog/)
# Usage
Install the library with Nuget
> Install-Package NLog.Elmah
Update NLog to the latest version
> Update-Package NLog
Read the [NLog tutorial](https://github.com/NLog/NLog/wiki/Tutorial)
Example config:
```xml
```
## Options
- **Layout** - Used for rendering the `Elmah.Message`. Default is `${message}`
- **LogType** - Layout for rendering the `Elmah.Type` Field. Default is `${exception:format=Type:whenEmpty=${level}}`
> Introduced with NLog.Elmah v4.1 and replaces obsolete `LogLevelAsType`
- **LogSource** - Layout for rendering the `Elmah.Source` Field. Default is `${exception:format=Source:whenEmpty=${logger}}`
- **LogDetail** - Layout for rendering the `Elmah.Detail` Field. Default is `${exception:format=ToString}`
- **LogHostName** - Layout for rendering the `Elmah.HostName` Field. Default is `${hostname}`
- **LogUser** - Layout for rendering the `Elmah.User` Field. Default is blank.
- **IdentityNameAsUser** - Use HttpContext.User as fallback when `LogUser` gives blank value. Default is `false`## Notes
Not strong named (SNK) because [the dependency](https://www.nuget.org/packages/elmah.corelibrary/) isn't strong named.