1 | /* --------------------------------------------------------------------------------------------
|
2 | * Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
3 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
4 | * ------------------------------------------------------------------------------------------ */
|
5 | import { Logger } from 'vscode-jsonrpc';
|
6 |
|
7 | export class ConsoleLogger implements Logger {
|
8 | public error(message: string): void {
|
9 | console.error(message);
|
10 | }
|
11 |
|
12 | public warn(message: string): void {
|
13 | console.warn(message);
|
14 | }
|
15 |
|
16 | public info(message: string): void {
|
17 | console.info(message);
|
18 | }
|
19 |
|
20 | public log(message: string): void {
|
21 | console.log(message);
|
22 | }
|
23 |
|
24 | public debug(message: string): void {
|
25 | console.debug(message);
|
26 | }
|
27 | }
|