Skip to content

Commit

Permalink
Added async info in README
Browse files Browse the repository at this point in the history
  • Loading branch information
varshneyjayant committed Mar 5, 2015
1 parent f351048 commit 151a20d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
log4net-loggly
==============

Custom log4net appenders for importing logging events to loggly. Check out Loggly's [.Net logging documentation](https://www.loggly.com/docs/net-logs/) to learn more.
Custom log4net appenders for importing logging events to loggly. It’s asynchronous and will send logs in the background without blocking your application. Check out Loggly's [.Net logging documentation](https://www.loggly.com/docs/net-logs/) to learn more.

Download log4net-loggly package from NuGet. Use the following command.

Expand Down Expand Up @@ -40,5 +40,15 @@ Create an object of the Log class using LogManager
var logger = LogManager.GetLogger(typeof(Class));

Send logs to Loggly using the following code


```
logger.Info("log message");
```

<strong>For Console Application</strong>

You should add the following statement at the end of your Main method as the log4net-loggly library is asynchronous so there needs to be time for the threads the complete logging before the application exits.

```
Console.ReadKey();
```

0 comments on commit 151a20d

Please sign in to comment.