@lukadriel/pino-fluent
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Introduction

This package is a simple fluentd/fluent-bit transport for the pino logging library using @fluent-org/logger.

Usage

The fluent logger requires a prefix or a tag. This library currently only allows the use of prefix. One can also add the options from the @fluent-org/logger FluentClient class;

import { pino } from 'pino';
import { TransportOptions } from '@lukadriel/pino-fluent';

const transport = pino.transport<TransportOptions>({
    target: '@lukadriel/pino-fluent',
    options: {
        prefix: 'my.app',
    },
});
const logger = pino(transport);
logger.info('Hello from app');

Readme

Keywords

none

Package Sidebar

Install

npm i @lukadriel/pino-fluent

Weekly Downloads

1

Version

0.2.0

License

ISC

Unpacked Size

6.97 kB

Total Files

8

Last publish

Collaborators

  • lukadriel