#
useLoggers
Retrieve a RuntimeLogger
instance from the FireflyRuntime
instance. The returned instance will log messages to the specified Logger instances.
#
Reference
const logger = useLoggers(names)
#
Parameters
names
: The name of the logger instances to log messages to.
#
Returns
A RuntimeLogger
instance.
#
Usage
import { useLoggers, ConsoleLogger } from "@squide/firefly";
const logger = useLoggers([ConsoleLogger.name]);
logger.debug("Hello", { world: "!" });