UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

24 lines (23 loc) 865 B
import type { ILogEntry, ILogger } from '../../definition/accessors'; import type { AppMethod } from '../../definition/metadata'; import type { ILoggerStorageEntry } from './ILoggerStorageEntry'; export declare class AppConsole implements ILogger { static toStorageEntry(appId: string, logger: AppConsole): ILoggerStorageEntry; method: `${AppMethod}`; private entries; private start; constructor(method: `${AppMethod}`); debug(...items: Array<any>): void; info(...items: Array<any>): void; log(...items: Array<any>): void; warn(...items: Array<any>): void; error(...items: Array<any>): void; success(...items: Array<any>): void; getEntries(): Array<ILogEntry>; getMethod(): `${AppMethod}`; getStartTime(): Date; getEndTime(): Date; getTotalTime(): number; private addEntry; private getFunc; }