UNPKG

@scayle/storefront-nuxt

Version:

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

15 lines (14 loc) 577 B
import type { Log } from '@scayle/storefront-core'; /** * Retrieves a logging instance. * * It allows for creating a namespaced logger using the provided `subSpace` argument. * If a namespace is specified, the function will return a logger scoped to that subspace. * Otherwise, it returns the root logger. * * @param subSpace The namespace to create the logger for. * * @returns The log instance, a namespace is specified, a logger scoped to that subspace. * Otherwise, it returns the root logger. */ export declare function useLog(subSpace?: string): Log;