BlueRain
Github
  • πŸ’§Introduction
  • Overview
    • πŸ“²Quick Start
    • πŸŽ›οΈConfiguration with bluerain.js
    • 🎑Lifecycle Events
    • πŸ›£οΈRoadmap
  • Key Concepts
    • πŸ”ŒPlugins
      • Developing an Analytics Plugin
      • Developing a Logger Plugin
      • Developing a Theme Plugin
    • 🎣Hooks
    • 🎁Components
    • πŸ“¦BlueRain Modules
    • πŸŽ›οΈConfigs
    • πŸ“ˆAnalytics
    • πŸ“”Logger
    • 🎨Themes
      • Installation
      • Consuming Selected Theme
      • Customise Themes
      • Customise Components
      • Theme Configs
      • Theme Structure
    • Registry
  • Guides
    • πŸ—ΏIcons
    • πŸ›‚Migrating from V3
  • Components
    • Typography
    • Icons
      • Icon
      • DynamicIcon πŸ“Œ
      • PluginIcon πŸ“Œ
  • CLI
    • Expo
    • Web
    • Storybook (Web)
    • Storybook Native (Expo)
Powered by GitBook
On this page
  1. Key Concepts
  2. πŸ”ŒPlugins

Developing a Logger Plugin

You can add support for any logging service provider by using the following logger hooks:

  • bluebase.logger.log

  • bluebase.logger.info

  • bluebase.logger.debug

  • bluebase.logger.warn

  • bluebase.logger.error

Example

await BB.Hooks.register('bluebase.logger.log', {
	name: 'logger-plugin',
	handler: (message: string, data: any) => {
		// send data to analytics provider here
	}
});
PreviousDeveloping an Analytics PluginNextDeveloping a Theme Plugin

Last updated 6 years ago