/*! * 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'; export interface ILogEntry { messageObj: any; txtMsg?: string; logType: 'debug' | 'info' | 'warning' | 'error'; } /** A fake logger used to accumulate log entries during unit tests */ export declare class FakeLogger implements ILogger { entries: ILogEntry[]; /** returns the last log entry */ last(): ILogEntry; /** clears all log entries */ reset(): void; /** logs a message with the 'debug' verbosity level * @param messageObj a dictionary of metadata * @param txtMsg a text message to report */ 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 */ 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 */ 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 */ error(messageObj: any, txtMsg?: string): void; }