Skip to content

Commit

Permalink
feat: add logger prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed May 7, 2021
1 parent bbef77f commit bee34ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const plugin = (options?: ViteCertificateOptions): Plugin => {
}

const { logLevel } = config
const logger = createLogger(logLevel)
const logger = createLogger(logLevel, {
prefix: PLUGIN_NAME
})
const ips = getLocalV4Ips()
const mkcert = Mkcert.create({
logger,
Expand Down

0 comments on commit bee34ee

Please sign in to comment.