bpcloud / middleware-log4js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logger middleware in bpframework.

Middleware specification

https://github.com/bpcloud/middleware

Setup.

import { Application } from 'bpframework';
import * as middleware_logger from '@bpframework/middleware-log4js';

Application.use(middleware_logger.middleware)
Application.runKoa(...);

Config.

bp:
  # feign client log (none, basic, headers, full).
  feignLoggingLevel: full # full
  # restController log (none, basic, headers, full).
  restControllerLoggingLevel: full # full
  # logger dir
  loggerDir: 

Usage.

getLogger().info(...);

About

License:MIT License


Languages

Language:TypeScript 100.0%