Skip to content

feat: adding function(req, res) support to connectLogger options->nol…#1279

Merged
lamweili merged 2 commits intolog4js-node:masterfrom
eyoboue:nolog-function
Jul 4, 2022
Merged

feat: adding function(req, res) support to connectLogger options->nol…#1279
lamweili merged 2 commits intolog4js-node:masterfrom
eyoboue:nolog-function

Conversation

@eyoboue
Copy link
Copy Markdown
Contributor

@eyoboue eyoboue commented Jul 3, 2022

#1278 Adding connectLogger options.nolog -> (req, res).
Example:

const connectLogger = log4js.connectLogger(logger, { nolog: (req, res) => res.statusCode < 400 });

@lamweili lamweili added the enhancement New feature or request label Jul 3, 2022
@lamweili lamweili linked an issue Jul 3, 2022 that may be closed by this pull request
@lamweili lamweili added this to the 6.5.3 milestone Jul 3, 2022
@lamweili
Copy link
Copy Markdown
Contributor

lamweili commented Jul 3, 2022

@lamweili lamweili merged commit 6acc345 into log4js-node:master Jul 4, 2022
Copy link
Copy Markdown
Contributor

@lamweili lamweili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eyoboue Thanks for the PR, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: function (req, res) as nolog option

2 participants