microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.11.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/log/NullLogger.ts

13lines · 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 public log (message: string, level: LogLevel | undefined) {}
8 public info (message: string) {}
9 public warning (message: string) {}
10 public error (errorMessage: string, error?: Error | undefined, stack?: boolean | undefined) {}
11 public debug (message: string) {}
12 public logStream (data: String | Buffer, stream?: NodeJS.WritableStream | undefined) {}
13}