microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.7.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/log/NullLogger.ts

19lines · modeblame

0a68f8dbArtem Egorov8 years ago1// 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 {
34472878RedMickey5 years ago7/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
8public log(message: string, level: LogLevel | undefined): void {}
9public info(message: string): void {}
10public warning(message: string): void {}
11public error(
12errorMessage: string,
13error?: Error | undefined,
14stack?: boolean | undefined,
15): void {}
16public debug(message: string): void {}
17public logStream(data: string | Buffer, stream?: NodeJS.WritableStream | undefined): void {}
18/* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
0a68f8dbArtem Egorov8 years ago19}