@budarin/browser-pino-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

browser-pino-logger

A preconfigured Pino logger designed for web applications to facilitate the transmission of logs to a server.

Installation

yarn add @budarin/browser-pino-logger

Usage

import { PinoLogger } from '@budarin/browser-pino-logger';

const appLogger = new PinoLogger('/api', { layer: 'APP' });
appLogger.info('Start Application!');

const domainLogger = appLogger.child({ layer: 'DOMAIN' });
domainLogger.info('Log from Domain!');

Readme

Keywords

Package Sidebar

Install

npm i @budarin/browser-pino-logger

Weekly Downloads

89

Version

1.0.11

License

MIT

Unpacked Size

6.11 kB

Total Files

5

Last publish

Collaborators

  • budarin