0.1.0 • Published 9 months ago

merapi-plugin-aop-logger-v2 v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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.

0.1.0

9 months ago