From 7589692fb100db55f9b59f835dc580ba70ede9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=20Audrey=20=E2=9C=A8?= Date: Wed, 12 Mar 2025 10:32:48 -0400 Subject: [PATCH] prettier --- .../common/src/tools/log/ecs-format/ecs-classifier.ts | 9 +++++---- libs/common/src/tools/log/ecs-format/error.ts | 8 ++++---- libs/common/src/tools/log/ecs-format/log.ts | 8 ++++---- libs/common/src/tools/log/ecs-format/user.ts | 10 +++++----- libs/common/src/tools/log/log-key.ts | 11 +++++------ 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libs/common/src/tools/log/ecs-format/ecs-classifier.ts b/libs/common/src/tools/log/ecs-format/ecs-classifier.ts index 9da65db1d0c..1bcd04043bc 100644 --- a/libs/common/src/tools/log/ecs-format/ecs-classifier.ts +++ b/libs/common/src/tools/log/ecs-format/ecs-classifier.ts @@ -5,13 +5,14 @@ import { Classifier } from "../../state/classifier"; import { EcsFormat } from "./core"; /** Removes all properties except ECS properties and the listed properties. -*/ -export class EcsClassifier implements Classifier { - classify(value: LogFormat): { disclosed: never; secret: never; } { + */ +export class EcsClassifier + implements Classifier +{ + classify(value: LogFormat): { disclosed: never; secret: never } { throw new Error("Method not implemented."); } declassify(disclosed: never, secret: never): Jsonify { throw new Error("Method not implemented."); } - } diff --git a/libs/common/src/tools/log/ecs-format/error.ts b/libs/common/src/tools/log/ecs-format/error.ts index 03b0e0623fa..822780d2f0b 100644 --- a/libs/common/src/tools/log/ecs-format/error.ts +++ b/libs/common/src/tools/log/ecs-format/error.ts @@ -4,12 +4,12 @@ export type ErrorFormat = EcsFormat & { /** Error indicators collected by the provider */ error: { /** content from the message field of the error */ - message: string, + message: string; /** content from the error's stack trace */ - stack_trace: string, + stack_trace: string; /** the type of the error, for example the error's class name */ - type: string - }, + type: string; + }; }; diff --git a/libs/common/src/tools/log/ecs-format/log.ts b/libs/common/src/tools/log/ecs-format/log.ts index b91fa5fe814..0038219b37c 100644 --- a/libs/common/src/tools/log/ecs-format/log.ts +++ b/libs/common/src/tools/log/ecs-format/log.ts @@ -4,13 +4,13 @@ export type LogFormat = EcsFormat & { /** Log metadata */ log: { /** original log level of the event */ - level: "debug" | "info" | "warn" | "error", + level: "debug" | "info" | "warn" | "error"; /** source of the event; this is usually a type name */ - logger: string, + logger: string; // FIXME: if it becomes possible to include line/file numbers, // add the origin fields from here: // https://www.elastic.co/guide/en/ecs/current/ecs-log.html - } -} + }; +}; diff --git a/libs/common/src/tools/log/ecs-format/user.ts b/libs/common/src/tools/log/ecs-format/user.ts index 61aa766ba93..edfd5e694e6 100644 --- a/libs/common/src/tools/log/ecs-format/user.ts +++ b/libs/common/src/tools/log/ecs-format/user.ts @@ -1,13 +1,13 @@ -import { UserId } from "../../../types/guid" +import { UserId } from "../../../types/guid"; import { EcsFormat } from "./core"; export type UserFormat = EcsFormat & { /** Account indicators collected by the provider * WARNING: `UserFormat` should be used sparingly; it is PII. - */ + */ user: { - id: UserId, - email?: string, - } + id: UserId; + email?: string; + }; }; diff --git a/libs/common/src/tools/log/log-key.ts b/libs/common/src/tools/log/log-key.ts index 1a37cbb1307..4087ea68730 100644 --- a/libs/common/src/tools/log/log-key.ts +++ b/libs/common/src/tools/log/log-key.ts @@ -5,14 +5,13 @@ import { Classifier } from "../state/classifier"; import { EcsFormat } from "./ecs-format"; export type LogKey = { - - target: "log", - format: "classified_circular_buffer", - size: N, - key: string, + target: "log"; + format: "classified_circular_buffer"; + size: N; + key: string; state: StateDefinition; cleanupDelayMs?: number; - classifier: Classifier, + classifier: Classifier; /** For encrypted outputs, determines how much padding is applied to * encoded inputs. When this isn't specified, each frame is 32 bytes