Added README for gelf appender
This commit is contained in:
parent
788de0cac3
commit
615b534b56
18
README.md
18
README.md
@ -220,6 +220,24 @@ This was mainly created for [cluster](https://github.com/LearnBoost/cluster), bu
|
|||||||
.listen(3000);
|
.listen(3000);
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## gelf logger
|
||||||
|
|
||||||
|
A gelf logger has been added to log4js, by [arifamirani](https://github.com/arifamirani). This allows log4js to log to [GELF](http://www.graylog2.org/about/gelf) compatible servers such as [Graylog](http://www.graylog2.org/). This is currently configuration based and needs the following configuration to be added to log4j.json. For example:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
{
|
||||||
|
"appenders": [
|
||||||
|
{
|
||||||
|
"type": "gelf",
|
||||||
|
"host": "logs.mydomain.com", //defaults to localhost
|
||||||
|
"hostname":"mrs-dev", //defaults to the value returned by os.hostname()
|
||||||
|
"port": "12201", //defaults to 12201
|
||||||
|
"facility": "myapp" //defaults to nodejs-server
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
## author (of this node version)
|
## author (of this node version)
|
||||||
|
|
||||||
Gareth Jones (csausdev - gareth.jones@sensis.com.au)
|
Gareth Jones (csausdev - gareth.jones@sensis.com.au)
|
||||||
|
Loading…
Reference in New Issue
Block a user