-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNoopLogger.ts
More file actions
38 lines (33 loc) · 1.28 KB
/
NoopLogger.ts
File metadata and controls
38 lines (33 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*!
* Copyright (c) 2020 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
import { ILogger } from './ILogger';
/** default logger used to ignore log entries */
export class NoopLogger implements ILogger {
/** logs a message with the 'debug' verbosity level
* @param messageObj a dictionary of metadata
* @param txtMsg a text message to report
*/
// tslint:disable-next-line: no-empty
public debug(messageObj: any, txtMsg?: string): void {}
/** logs a message with the 'info' verbosity level
* @param messageObj a dictionary of metadata
* @param txtMsg a text message to report
*/
// tslint:disable-next-line: no-empty
public info(messageObj: any, txtMsg?: string): void {}
/** logs a message with the 'warning' verbosity level
* @param messageObj a dictionary of metadata
* @param txtMsg a text message to report
*/
// tslint:disable-next-line: no-empty
public warning(messageObj: any, txtMsg?: string): void {}
/** logs a message with the 'error' verbosity level
* @param messageObj a dictionary of metadata
* @param txtMsg a text message to report
*/
// tslint:disable-next-line: no-empty
public error(messageObj: any, txtMsg?: string): void {}
}