https://github.com/bpcloud/middleware-log4js
https://github.com/bpcloud/middleware-log4js
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bpcloud/middleware-log4js
- Owner: bpcloud
- License: mit
- Created: 2022-01-24T08:23:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T07:52:09.000Z (almost 4 years ago)
- Last Synced: 2025-01-13T09:54:35.295Z (12 months ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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(...);
```