Skip to content

log-rush/LogRushClient.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogRushClient.Net

LogRush Client for C#

Basic Usage

install the LogRushClient via Nuget

using LogRushClient.Core;

// create Logger
// you can optionally provide an ID and Key to reuse an old Logger
var logger = new LogRushLogger("MyLogger", "http://my-logrush-server", "id", "key");

// log text to LogRush
logger.log("Hello World!"); 

Log4Net Logger

add the following xml to your Log4Net config:

<appender name="logrush" type="LogRushClient.Log4Net.LogRushLogger, LogRushClient">
  <Alias value="Zwoo Backend Logger"/>
  <Server value="http://localhost:7000"/>
  <!-- <Id value="your-id"/> -->
  <!-- <Key value="your-key"/> -->
  <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="[%date] [%logger] [%level] %message%newline" />
  </layout>
</appender>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages