A Loggly target for NLog
You will need to configure Loggly as follows:
- Create a new Input. Name it what ever, but make sure your input is HTTP and JSON is off...
- set the URL in your NLog.config to the URL you recieve from Loggy.
- Run some tests...
That should be it. Any questions, shout... details below
Dependencies
Install
You can now install Loggly Target using
NuGET:
for the AnyCPU build use:
PM> Install-Package LogglyTarget
if you want the x64 version, use:
PM> Install-Package LogglyTarget.x64
Your NLog.config should look something like:
- bufferNumber is the number of items to buffer before you send HTTP requests (Currently one per line...)
- shouldBuffer can be true (wait till the bufferNumber hits the specified and then write to Loggly) or False (Always write)
Authors
Tiernan OToole (tiernan [at] tiernanotoole [dot] net) @tiernano
Contact
Tiernan OToole (tiernan [at] tiernanotoole [dot] net) @tiernano
Download
You can download this project code in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/tiernano/LogglyNLoggerTarget