UNPKG

igir

Version:

🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.

52 lines (51 loc) • 1.16 kB
class PrefixedLogger { logger; prefix; constructor(logger, prefix) { this.logger = logger; this.prefix = prefix; } /** * Log a TRACE message. * * This should be used to log internal actions that most users shouldn't care about, but could be * helpful in bug reports. */ trace(message = "") { this.logger.trace(message, this.prefix); } /** * Log a DEBUG message. * * This should be used to log actions that weren't taken (i.e. skipped writing a ROM because it * already exists, etc.). */ debug(message = "") { this.logger.debug(message, this.prefix); } /** * Log an INFO message. * * This should be used to log actions that were taken (i.e. copying/moving ROMs, recycling files, * writing DATs, etc.). */ info(message = "") { this.logger.info(message, this.prefix); } /** * Log a WARN message. */ warn(message = "") { this.logger.warn(message, this.prefix); } /** * Log an ERROR message. */ error(message = "") { this.logger.error(message, this.prefix); } } export { PrefixedLogger as default }; //# sourceMappingURL=prefixedLogger.js.map