You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
348 B
13 lines
348 B
3 years ago
|
import {json, Logging, Middleware} from "@extollo/lib";
|
||
|
import {Inject, Injectable} from "@extollo/di";
|
||
|
|
||
|
@Injectable()
|
||
|
export class LogRequest extends Middleware {
|
||
|
@Inject()
|
||
|
protected readonly logging!: Logging
|
||
|
|
||
|
public async apply() {
|
||
|
this.logging.info(`Incoming request: ${this.request.method} @ ${this.request.path}`)
|
||
|
}
|
||
|
}
|