microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.13.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/log/NullLogger.ts

13lines · modepreview

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

import { ILogger, LogLevel } from "./LogHelper";

export class NullLogger implements ILogger {
    public log (message: string, level: LogLevel | undefined) {}
    public info (message: string) {}
    public warning (message: string) {}
    public error (errorMessage: string, error?: Error | undefined, stack?: boolean | undefined) {}
    public debug (message: string) {}
    public logStream (data: String | Buffer, stream?: NodeJS.WritableStream | undefined) {}
}