Skip to content

Commit

Permalink
fix: use consola.withTag instead of kit.useLogger (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jul 5, 2023
1 parent 2e71c6d commit 9efb4e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import httpDriver from 'unstorage/drivers/http'
// @ts-ignore
import githubDriver from 'unstorage/drivers/github'
import { WebSocketServer } from 'ws'
import { useLogger } from '@nuxt/kit'
import { consola } from 'consola'

import type { ModuleOptions, MountOptions } from './module'
import type { MarkdownPlugin } from './runtime/types'

export const logger = useLogger('@nuxt/content')
export const logger = consola.withTag('@nuxt/content')

/**
* Internal version that represents cache format.
Expand Down

0 comments on commit 9efb4e1

Please sign in to comment.