@scayle/storefront-nuxt
Version:
Nuxt integration for the SCAYLE Commerce Engine and Storefront API
15 lines (14 loc) • 687 B
TypeScript
/**
* Creates a logger instance with an `sfc` prefix.
*
* This composable provides a logging function specifically for storefront-nuxt internal operations.
* It wraps the generic `useLog` function and prefixes the provided subspace with `sfc` to distinguish
* storefront-nuxt logs from application logs. This aids in debugging and troubleshooting by clearly
* identifying the origin of log messages.
*
* @param subSpace The subspace for the logger. If provided, it will be prefixed with `sfc.`.
* If not provided, the subspace will be just `sfc`.
*
* @returns A logger instance.
*/
export declare function useCoreLog(subSpace: string): import("@scayle/storefront-core").Log;