forked from log4js-node/log4js-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Gelf
nomiddlename edited this page Jun 1, 2012
·
1 revision
The gelf appender was added to log4js by arifamirani. This allows log4js to log to GELF compatible servers such as Graylog. This is currently configuration based and needs the following configuration to be added to log4j.json. For example:
{
"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
}
}
}