log4js-loganalysis
v0.0.7
Published
A log4js appender for IBM loganalysis
Downloads
6
Readme
A log4js appender for IBM loganalysis
The log4js-loganalysis module extends the log4js appender for IBM LogAnalysis service, which output the log message to bluemix.
Installation
$ npm install log4js
$ npm install log4js-loganalysis
Usage
var log4js = require('log4js');
log4js.configure({
"appenders": [
{
"category": "analysis",
"type": "log4js-loganalysis"
}
],
"levels": {
"analysis": "INFO"
}
});
or
var loganalysisAppender = require('log4js-loganalysis').configure();
log4js.addAppender(loganalysisAppender);
...
var logger = log4js.getLogger('analysis');
logger.info('hello');
This package contains sample code provided in source code form. The samples are licensed under the under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0(http://www.apache.org/licenses/LICENSE-2.0) and may also view the license in the license.txt file within this package. Also see the notices.txt file within this package for additional terms and conditions.