summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/LoggerService.ts
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2022-12-14 00:01:45 +0900
committerGitHub <noreply@github.com>2022-12-14 00:01:45 +0900
commit4b98920f02a16498592d67bb1b9ce8c09e0228b2 (patch)
treee5a7ef916642f1d65f1bbd460f64c9b862a6b54f /packages/backend/src/core/LoggerService.ts
parentCall `tsc --noEmit` also for backend/client (#9316) (diff)
downloadsharkey-4b98920f02a16498592d67bb1b9ce8c09e0228b2.tar.gz
sharkey-4b98920f02a16498592d67bb1b9ce8c09e0228b2.tar.bz2
sharkey-4b98920f02a16498592d67bb1b9ce8c09e0228b2.zip
Fix import related TypeScript errors (#9321)
* Add missing @types packages * Fix TS1272 type only imports * Fix TS2821 import assertion
Diffstat (limited to 'packages/backend/src/core/LoggerService.ts')
-rw-r--r--packages/backend/src/core/LoggerService.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/backend/src/core/LoggerService.ts b/packages/backend/src/core/LoggerService.ts
index 4303f3ae22..221631f129 100644
--- a/packages/backend/src/core/LoggerService.ts
+++ b/packages/backend/src/core/LoggerService.ts
@@ -4,6 +4,7 @@ import { DI } from '@/di-symbols.js';
import type { Config } from '@/config.js';
import Logger from '@/logger.js';
import { bindThis } from '@/decorators.js';
+import type { KEYWORD } from 'color-convert/conversions';
@Injectable()
export class LoggerService {
@@ -15,9 +16,9 @@ export class LoggerService {
) {
if (this.config.syslog) {
this.syslogClient = new SyslogPro.RFC5424({
- applacationName: 'Misskey',
+ applicationName: 'Misskey',
timestamp: true,
- encludeStructuredData: true,
+ includeStructuredData: true,
color: true,
extendedColor: true,
server: {
@@ -29,7 +30,7 @@ export class LoggerService {
}
@bindThis
- public getLogger(domain: string, color?: string | undefined, store?: boolean) {
+ public getLogger(domain: string, color?: KEYWORD | undefined, store?: boolean) {
return new Logger(domain, color, store, this.syslogClient);
}
}