An open API service indexing awesome lists of open source software.

https://github.com/bpcloud/middleware-log4js


https://github.com/bpcloud/middleware-log4js

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# logger middleware in bpframework.

### Middleware specification

https://github.com/bpcloud/middleware

#### Setup.

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

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

#### Config.

```properties
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(...);
```