@bpinternal/log4bot
TypeScript icon, indicating that this package has built-in type declarations

0.0.26 • Public • Published

Log4Bot

This package contains a Logger.

Usage

import { Logger } from '@bpinternal/log4bot'

const logger = new Logger('main', { prefix: 'MYAPP', level: 'debug' })
logger.info('I love Botpress.', { afield: '42' })

logger.attachError(new Error('Precondition Failed')).error('An error occured')

Disclaimer ⚠️

This package is published under the @bpinternal organization. All packages of this organization are meant to be used by the Botpress team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly.

The Botpress Engineering team.

Readme

Keywords

none

Package Sidebar

Install

npm i @bpinternal/log4bot

Weekly Downloads

2,205

Version

0.0.26

License

MIT

Unpacked Size

35.6 kB

Total Files

16

Last publish

Collaborators

  • allardy
  • botpress-cloud-ops
  • davidvitora
  • michael.masson
  • franklevasseur
  • chsir17
  • slvnperron