merge coreLogger utility with new startup services concept
This commit is contained in:
parent
7f4353fcf1
commit
59c39eda6a
3 changed files with 16 additions and 13 deletions
|
|
@ -1,3 +1,14 @@
|
|||
import Logger from '@/logger.js';
|
||||
/*
|
||||
* SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export const coreLogger = new Logger('core', 'cyan');
|
||||
import { EnvService } from '@/global/EnvService.js';
|
||||
import { LoggerService } from '@/core/LoggerService.js';
|
||||
import { NativeTimeService } from '@/global/TimeService.js';
|
||||
|
||||
export const envService = new EnvService();
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
export const loggerService = new LoggerService(console, new NativeTimeService(), envService);
|
||||
export const coreLogger = loggerService.getLogger('core', 'cyan');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue