declare class JetLog { /** * Constructor of jetlog * @param options options for the logger. */ constructor(options: JetLogOptions); /** * Fetches a new * @param value the requested log level * @returns */ level(value: number): JetLog; /** * Error method - adds a message to the log at level 1 */ error(): Promise; /** * Warn method - adds a message to the log at level 2 */ warn(): Promise; /** * Log method - adds a message to the log at level 3 */ log(): Promise; /** * Info method - adds a message to the log at level 4 */ info(): Promise; /** * Debug method - adds a message to the log at level 5 */ debug(): Promise; /** * Trace method - adds a message to the log at level 6 */ trace(): Promise; /** * Defaults */ static defaults: JetLogOptions; } /** * The main export is a global instance of the JetLog class automatically. */ declare module 'jetlog' { /** * Entry class */ class Entry { /** * Single JetLog entry * @param msg * @param level * @param origin * @param stack * @param extra */ constructor(msg: string, level: number, origin: any, stack: CallSite, extra: Object); ts: any; msg: any; level: any; origin: any; stack: any; extra: any; message: String; /** * Exposes text representation for indexing */ text: any; } }