merapi-plugin-aop-logger

0.2.0 • Public • Published

Merapi Plugin: AOP Logger

Introduction

This plugin will add logger handler method for merapi-plugin-aop.

Installation

Add plugin to dependency list in package.json

npm install merapi-plugin-aop-logger --save

Configuration

{
    name: "my-service",
    version: "1.0.0",
    plugins: [
        "aop"
        "aop-logger"
    ],
    aspects: {
        logging: {
            handler: aopLogger.log,
            match: "*.*",
            options: {
                output: "test log [methodName]: [params] [result]"
            }
        }
    }
}

aop-logger handler is aopLogger.log with methodName, params, and result as available placeholder variable.

Readme

Keywords

none

Package Sidebar

Install

npm i merapi-plugin-aop-logger

Weekly Downloads

0

Version

0.2.0

License

ISC

Unpacked Size

3.37 kB

Total Files

6

Last publish

Collaborators

  • ikmals
  • rickyanders
  • rizqme