microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.5.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/extension/log/NullLogger.ts

19lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import { ILogger, LogLevel } from "./LogHelper";
5
6export class NullLogger implements ILogger {
7 /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
8 public log(message: string, level: LogLevel | undefined): void {}
9 public info(message: string): void {}
10 public warning(message: string): void {}
11 public error(
12 errorMessage: string,
13 error?: Error | undefined,
14 stack?: boolean | undefined,
15 ): void {}
16 public debug(message: string): void {}
17 public logStream(data: string | Buffer, stream?: NodeJS.WritableStream | undefined): void {}
18 /* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
19}
20