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

🔌