Squide
  • Home
  • Found a bug?
  • Feature requests
  • Releases
  • Github
  • NPM
  1. Reference
  2. Logging
  3. use​Logger

useLogger

Retrieve a logger instance from the FireflyRuntime instance. The returned logger will log messages to all registered logger instances.

Reference

const logger = useLogger()

Parameters

None

Returns

A logger instance.

Usage

import { useLogger } from "@squide/firefly";

const logger = useLogger();

logger.debug("Hello!");

See also

Reference

Packages

Setup the logger

Squide logger provides visibility into the application's bootstrapping flow and how modules behave and interact. It also offers an abstraction that allows applications to emit custom logs to multiple destinations defined by the host application.

Use the logger

Squide integrates with the @workleap/logging library by accepting a loggers array during initialization. If no loggers are provided and the application is running in development mode, Squide automatically attaches a BrowserConsoleLogger instance to the runtime.

Edit this page
Previous is​Editable​Launch​Darkly​Client
Next Plugin
  • About
  • License

© Copyright 2026 - Workleap