Skip to content
Discussion options

You must be logged in to vote

@gmorgen1 starting v22.13.0 you can customize or disable access logging directly

import { createConfig } from "express-zod-api";

const config = createConfig({
  // or null to disable it:
  accessLogger: (request, logger) => {
    if (/GET: \/v1\/other\/health/.test(request.path)) return;
    logger.info(`${request.megtho}: ${request.path}`);
  }
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants