@budarin/browser-pino-logger
v1.0.12
Published
Browser pino logger for web applications
Downloads
83
Readme
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!');