question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@marblejs/middleware-logger extend filter options

See original GitHub issue

Is there any way to use the filter of the marblejs/middleware-logger to filter specific routes? I have some frequently called routes which I do not want to see in the log. I know I can just use some grep to filter them, but it would be nice to filter it with the filter option of the marblejs/middleware-logger.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JozefFlakuscommented, Apr 2, 2019

Version 2.1.0 has just been released. As described above, you will be able to filter not only by response but also by request. If there will be something missing I’ll reopen this issue.

Thanks! 💪

2reactions
JozefFlakuscommented, Apr 2, 2019

@knopki Hah, you are right. I was confused by the API which I authored 🤦‍♂️.

@SORC3r3r I’ll add also support for filtering incoming requests in the upcoming v2.1 release.

I think that the end API will look like this:

logger$({
  filter: (res, req) => ... // you can validate only `req`, only `res` or both
}),

So the signature will look like this:

(res: HttpResponse, req: HttpRequest) => boolean;
Read more comments on GitHub >

github_iconTop Results From Across the Web

@marblejs/middleware-logger - marble.js
Simple middleware for request logging inside your console. It displays the outgoing request events using the following format:.
Read more >
@marblejs/middleware-logger - npm
A logger middleware for Marble.js. Installation. $ npm i @marblejs/middleware-logger. Requires @marblejs/core to be installed.
Read more >
marble-website-starter/yarn.lock at master · ndlib/marble-website ...
Yarn workspace for the Gatsby Theme and Starter for the Marble project. ... resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware- ...
Read more >
4 Filtering WebLogic Server Log Messages - Oracle Help Center
A filter is a class that compares data in the WLLogRecord object with a set of criteria. The Logger object publishes only the...
Read more >
redux-observable/redux-observable - Gitter
ignoreElements() or just return an action that is just for logging ... /src/createEpicMiddleware.js#L31-L33, checking if options.dependencies is a function, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found