Skip to content

Commit 7276509

Browse files
committed
Fixed some issues with the log4net client
1 parent 34906f5 commit 7276509

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

Source/Platforms/Log4net/Exceptionless.Log4net.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{C3411D82-A4C9-41AF-99B8-F71926D69FD1}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>Exceptionless.NLog</RootNamespace>
11-
<AssemblyName>Exceptionless.NLog</AssemblyName>
10+
<RootNamespace>Exceptionless.Log4net</RootNamespace>
11+
<AssemblyName>Exceptionless.Log4net</AssemblyName>
1212
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
</PropertyGroup>
@@ -28,7 +28,7 @@
2828
<DefineConstants>TRACE</DefineConstants>
2929
<ErrorReport>prompt</ErrorReport>
3030
<WarningLevel>4</WarningLevel>
31-
<DocumentationFile>bin\Release\$(TargetFrameworkVersion)\Exceptionless.NLog.xml</DocumentationFile>
31+
<DocumentationFile>bin\Release\$(TargetFrameworkVersion)\Exceptionless.Log4net.xml</DocumentationFile>
3232
</PropertyGroup>
3333
<ItemGroup>
3434
<Reference Include="log4net">

Source/Platforms/Log4net/ExceptionlessAppender.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
2-
using System.Collections.Generic;
32
using log4net.Appender;
43
using log4net.Core;
54

6-
namespace Exceptionless.NLog {
5+
namespace Exceptionless.Log4net {
76
public class ExceptionlessAppender : AppenderSkeleton {
87
private ExceptionlessClient _client;
98

Source/Platforms/Log4net/ExceptionlessClientExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using log4net.Core;
55

6-
namespace Exceptionless.NLog {
6+
namespace Exceptionless.Log4net {
77
public static class ExceptionlessClientExtensions {
88
public static EventBuilder CreateFromLogEvent(this ExceptionlessClient client, LoggingEvent ev) {
99
var builder = ev.ExceptionObject != null ? client.CreateException(ev.ExceptionObject) : client.CreateLog(ev.LoggerName, ev.RenderedMessage, ev.Level.Name);

Source/Platforms/Log4net/Log4netExceptionlessLog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Exceptionless.Logging;
33
using log4net;
44

5-
namespace Exceptionless.NLog {
5+
namespace Exceptionless.Log4net {
66
public class Log4netExceptionlessLog : IExceptionlessLog {
77
// ignore and let NLog determine what should be captured.
88
public LogLevel MinimumLogLevel { get; set; }

Source/Platforms/Log4net/NuGet/Exceptionless.Log4net.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<version>$version$</version>
66
<authors>Exceptionless</authors>
77
<owners>Exceptionless</owners>
8-
<description>Log4net target that sends log entries to Exceptionless. Exceptionless is a cloud based error reporting service that sends your exceptions to http://exceptionless.io and provides aggregated views and analytics.</description>
8+
<description>Log4net appender that sends log entries to Exceptionless. Exceptionless is a cloud based error reporting service that sends your exceptions to http://exceptionless.io and provides aggregated views and analytics.</description>
99
<projectUrl>http://exceptionless.io</projectUrl>
1010
<iconUrl>https://be.exceptionless.io/img/exceptionless-32.png</iconUrl>
1111
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<releaseNotes>http://exceptionless.io/category/versions/</releaseNotes>
14-
<tags>NLog Target Exceptionless Error Report Reporting Exception Logging Log ELMAH</tags>
14+
<tags>Log4net Appender Exceptionless Error Report Reporting Exception Logging Log ELMAH</tags>
1515
<dependencies>
1616
<dependency id="Exceptionless.Portable" version="[$version$]" />
1717
<dependency id="log4net" version="2.0.3" />

Source/Platforms/Log4net/NuGet/readme.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ and viewing your project configuration page.
1818
log4net Integration
1919
-------------------------------------
2020

21-
Here is an example log.config file that shows how to use the Exceptionless NLog target.
21+
Here is an example log.config file that shows how to use the Exceptionless log4net appender.
2222

23-
...
23+
<appender name="ExceptionlessAppender" type="Exceptionless.Log4net.ExceptionlessAppender, Exceptionless.Log4net">
24+
<apiKey value="API_KEY_HERE" />
25+
</appender>
2426

2527
-------------------------------------
2628
Documentation and Support

0 commit comments

Comments
 (0)