mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 14:05:35 +02:00
* update deps * update dependencies (major) * fix: migrate meilisearch * fix: migrate color-convert types * fix cypress? * rollback ts v5 as it is not supported by cypress * fix fake-timers
22 lines
457 B
TypeScript
22 lines
457 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { Injectable } from '@nestjs/common';
|
|
import Logger from '@/logger.js';
|
|
import { bindThis } from '@/decorators.js';
|
|
import type { Keyword } from 'color-convert';
|
|
|
|
@Injectable()
|
|
export class LoggerService {
|
|
constructor(
|
|
) {
|
|
}
|
|
|
|
@bindThis
|
|
public getLogger(domain: string, color?: Keyword | undefined) {
|
|
return new Logger(domain, color);
|
|
}
|
|
}
|