https://github.com/budarin/browser-pino-logger
Client buffered logger
https://github.com/budarin/browser-pino-logger
Last synced: about 2 months ago
JSON representation
Client buffered logger
- Host: GitHub
- URL: https://github.com/budarin/browser-pino-logger
- Owner: budarin
- License: mit
- Created: 2023-11-30T19:04:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-11T08:17:13.000Z (6 months ago)
- Last Synced: 2025-03-24T09:03:58.482Z (2 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@budarin/browser-pino-logger
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# browser-pino-logger
A preconfigured Pino logger designed for web applications to facilitate the transmission of logs to a server.
## Installation
```bash
yarn add @budarin/browser-pino-logger
```## Usage
```ts
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!');
```