Skip to content

Commit

Permalink
Improve log message typing
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
Page- committed Jul 17, 2024
1 parent ef8414b commit 4976578
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/logging/log-backend.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
export type LogMessage = Dictionary<any>;
type BaseLogMessage = {
message: string;
isStdErr?: boolean;
timestamp?: number;
};
export type LogMessage = BaseLogMessage &
(
| {
serviceId?: number;
imageId?: number;
isSystem?: false;
}
| {
message: string;
isSystem: true;
}
);

export abstract class LogBackend {
public unmanaged: boolean;
Expand Down

0 comments on commit 4976578

Please sign in to comment.