@tryghost/logging-serializers
v0.1.12
Published
The Bunyan serializers used by Ghost(Pro) services. They normalize request, response, and error objects for structured logs while removing sensitive header values.
Maintainers
Keywords
Readme
Logging Serializers
The Bunyan serializers used by Ghost(Pro) services. They normalize request, response, and error objects for structured logs while removing sensitive header values.
Install
npm install @tryghost/logging-serializers --save
or
pnpm add @tryghost/logging-serializers
Usage
const serializers = require('@tryghost/logging-serializers');
const bunyan = require('bunyan');
const log = bunyan.createLogger({
name: 'my-service',
serializers: serializers.pro,
});
log.info({ req, res }, 'Handled request');Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clonethis repo &cdinto it as usual- Run
pnpm installto install top-level dependencies.
Test
pnpm --filter @tryghost/logging-serializers lintruns lintpnpm --filter @tryghost/logging-serializers testruns lint and tests
Copyright & License
Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.
