log4js-loganalysis

0.0.7 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    0
    • latest

Version History

Package Sidebar

Install

npm i log4js-loganalysis

Weekly Downloads

0

Version

0.0.7

License

Apache v2

Last publish

Collaborators

  • mg0432062
  • ibmmobilecloud