diff options
Diffstat (limited to 'packages/main/src/utils/log.ts')
-rw-r--r-- | packages/main/src/utils/log.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/main/src/utils/log.ts b/packages/main/src/utils/log.ts index 5218721..0a632d8 100644 --- a/packages/main/src/utils/log.ts +++ b/packages/main/src/utils/log.ts | |||
@@ -18,8 +18,9 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | // eslint-disable-next-line unicorn/import-style -- Import the type `ChalkInstance` separately. | ||
21 | import chalk, { ChalkInstance } from 'chalk'; | 22 | import chalk, { ChalkInstance } from 'chalk'; |
22 | import loglevel, { Logger } from 'loglevel'; | 23 | import loglevel from 'loglevel'; |
23 | import prefix from 'loglevel-plugin-prefix'; | 24 | import prefix from 'loglevel-plugin-prefix'; |
24 | 25 | ||
25 | if (import.meta.env?.DEV) { | 26 | if (import.meta.env?.DEV) { |
@@ -54,7 +55,7 @@ prefix.apply(loglevel, { | |||
54 | }, | 55 | }, |
55 | }); | 56 | }); |
56 | 57 | ||
57 | export function getLogger(loggerName: string): Logger { | 58 | export function getLogger(loggerName: string): loglevel.Logger { |
58 | return loglevel.getLogger(loggerName); | 59 | return loglevel.getLogger(loggerName); |
59 | } | 60 | } |
60 | 61 | ||