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 · 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 {
    /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
    public log(message: string, level: LogLevel | undefined): void {}
    public info(message: string): void {}
    public warning(message: string): void {}
    public error(
        errorMessage: string,
        error?: Error | undefined,
        stack?: boolean | undefined,
    ): void {}
    public debug(message: string): void {}
    public logStream(data: string | Buffer, stream?: NodeJS.WritableStream | undefined): void {}
    /* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
}