UNPKG

orion-engine

Version:

A simple and lightweight web based game development library

35 lines (34 loc) 1.3 kB
export declare class Debugging { private _logs; private _use_save_function; private _uuid; constructor(use_save_function: boolean, uuid: string); /** * Logs a message to the console and saves it to the log buffer. * @param message The message to log. */ log(message: string): void; /** * Logs a warning message to the console and saves it to the log buffer. * @param message The warning message to log. */ warn(message: string): void; /** * Logs an error message to the console and saves it to the log buffer. * @param message The error message to log. * @param error The error object associated with the message. */ error(message: string, error?: Error): void; /** * Checks a condition and logs an assertion error message to the console and saves it to the log buffer if the condition is false. * @param condition The condition to check. * @param message The error message to log if the condition is false. */ assert(condition: boolean, message: string): void; private save_logs; /** * Generates a log file and returns the download URL. * @returns The URL to download the log file. */ generate_log_file(): string; }