microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/log/NullLogger.ts
19lines · modeblame
0a68f8dbArtem Egorov8 years ago | 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 { | |
34472878RedMickey5 years ago | 7 | /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */ |
| 8 | public log(message: string, level: LogLevel | undefined): void {} | |
| 9 | public info(message: string): void {} | |
| 10 | public warning(message: string): void {} | |
| 11 | public error( | |
| 12 | errorMessage: string, | |
| 13 | error?: Error | undefined, | |
| 14 | stack?: boolean | undefined, | |
| 15 | ): void {} | |
| 16 | public debug(message: string): void {} | |
| 17 | public 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 ago | 19 | } |