gelfd 1.0.0
GELF protocol for D.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
gelfd
D module for the GELF protocol.
What is GELF?
GELF stands for the Graylog Extended Logging Format.
The Graylog Extended Log Format (GELF) is a log format that avoids the shortcomings of classic plain syslog, when logging to Graylog. It is an open standard with implementations in several languages.
GELF is a pure JSON format. It merely describes how log messages should be structured. In addition it describes compression of messages and chunking of large messages over UDP.
The protocol is described at graylog.org/resources/gelf
This module aims to provide a very simple way of generating log messages in GELF format.
Installation
Using DUB
See documentation on the project dub page
Using DMD/LDC/GDC
- Download
src/gelf.d
. This contains all source and unittests - Include it in your compile.
dmd MYFILE.d gelf.d
Unittests
Run unittests like so :
rdmd -main -unittest gelf.d
Usage
import stdx.protocol.gelf;
writeln(gelf("localhost", "The error message"));
TODO
- Chunking
- Compression
- Registered by Adil Baig
- 1.0.0 released 9 years ago
- adilbaig/gelfd
- github.com/adilbaig/gelfd
- MIT
- Authors:
- Dependencies:
- none
- Versions:
-
1.3.3 2017-Apr-05 1.3.2 2016-Dec-07 1.3.1 2016-Dec-07 1.3.0 2016-Apr-12 1.2.3 2016-Mar-30 - Download Stats:
-
-
1 downloads today
-
25 downloads this week
-
148 downloads this month
-
6625 downloads total
-
- Score:
- 2.5
- Short URL:
- gelfd.dub.pm