merapi-plugin-aop-logger
v0.2.0
Published
Logger Handler for Merapi AOP Plugin
Downloads
1
Readme
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.