Nuxt/packages/kit/src/logger.ts

8 lines
159 B
TypeScript
Raw Normal View History

import consola from 'consola'
export const logger = consola
export function useLogger (scope?: string) {
return scope ? logger.withScope(scope) : logger
}