aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/utils/log.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/utils/log.ts')
-rw-r--r--packages/main/src/utils/log.ts5
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.
21import chalk, { ChalkInstance } from 'chalk'; 22import chalk, { ChalkInstance } from 'chalk';
22import loglevel, { Logger } from 'loglevel'; 23import loglevel from 'loglevel';
23import prefix from 'loglevel-plugin-prefix'; 24import prefix from 'loglevel-plugin-prefix';
24 25
25if (import.meta.env?.DEV) { 26if (import.meta.env?.DEV) {
@@ -54,7 +55,7 @@ prefix.apply(loglevel, {
54 }, 55 },
55}); 56});
56 57
57export function getLogger(loggerName: string): Logger { 58export function getLogger(loggerName: string): loglevel.Logger {
58 return loglevel.getLogger(loggerName); 59 return loglevel.getLogger(loggerName);
59} 60}
60 61