Created
September 14, 2020 11:32
-
-
Save kingsley-einstein/82425d83dde0119b6ae4eee83957a86d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import debug from "debug"; | |
const log = debug("logging"); | |
export const logger = (req: any, res: any, next: any) { | |
log(`${req.path} +++++++++++++++++++ ${res.statusCode}`); | |
next(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment