0.0.7 • Published 10 years ago

log4js-loganalysis v0.0.7

Weekly downloads
21
License
Apache v2
Repository
-
Last release
10 years ago

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.

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago