Skip to content

Commit

Permalink
set default logger to not do any work instead of throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
colombod committed Mar 14, 2022
1 parent b162111 commit 1211add
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/microsoft-dotnet-interactive/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export type LogEntry = {
};

export class Logger {
private static _default: Logger | undefined;

private static _default: Logger = new Logger('default', (_entry: LogEntry) => { });

private constructor(private readonly source: string, readonly write: (entry: LogEntry) => void) {
}
Expand Down

0 comments on commit 1211add

Please sign in to comment.