@gradebook/logging
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@gradebook/logging

Pino-based logger partially compatible with Ghost Ignition

For a comparison to Ghost Ignition, check out ./comparison.md

Usage

// Create a logger with Ignition-like config
import {createLogger} from '@gradebook/logging';

// Note: options are described in the types for now
const logger = createLogger(/* options */);

logger.info('Hello, world!');
logger.error(new Error('Uh, oh!'));

// Automatically log HTTP requests

import express from 'express';
import {useHttpLogging} from '@gradebook/logging/lib/http.js';

const app = express();

// Note: options are described in the types for now
app.use(useHttpLogging(logger, /* options */))

Readme

Keywords

none

Package Sidebar

Install

npm i @gradebook/logging

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

80 kB

Total Files

54

Last publish

Collaborators

  • vikaspotluri123
  • joshcos97