microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
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 | |
| 4 | import { ILogger, LogLevel } from "./LogHelper"; |
| 5 | |
| 6 | export 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 | } |