You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
610 B
24 lines
610 B
//Note that loggly appender needs node-loggly to work.
|
|
//If you haven't got node-loggly installed, you'll get cryptic
|
|
//"cannot find module" errors when using the loggly appender
|
|
var log4js = require('../lib/log4js');
|
|
|
|
log4js.configure({
|
|
"appenders": [
|
|
{
|
|
type: "console",
|
|
category: "test"
|
|
},
|
|
{
|
|
"type" : "loggly",
|
|
"token" : "12345678901234567890",
|
|
"subdomain": "your-subdomain",
|
|
"tags" : ["test"],
|
|
"category" : "loggly"
|
|
}
|
|
]
|
|
});
|
|
|
|
var logger = log4js.getLogger("loggly");
|
|
logger.info("Test log message");
|
|
//logger.debug("Test log message");
|