UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

48 lines (46 loc) 1.3 kB
/** * Performs logging of the events in TypeORM. * This version of logger logs everything into ormlogs.log file. */ export class DummyLogger { /** * Logs query and parameters used in it. */ logQuery() { throw new Error('This logger is not applicable in a browser context'); } /** * Logs query that is failed. */ logQueryError() { throw new Error('This logger is not applicable in a browser context'); } /** * Logs query that is slow. */ logQuerySlow() { throw new Error('This logger is not applicable in a browser context'); } /** * Logs events from the schema build process. */ logSchemaBuild() { throw new Error('This logger is not applicable in a browser context'); } /** * Logs events from the migrations run process. */ logMigration() { throw new Error('This logger is not applicable in a browser context'); } /** * Perform logging using given logger, or by default to the console. * Log has its own level and message. */ log() { throw new Error('This logger is not applicable in a browser context'); } } export class FileLogger extends DummyLogger { } //# sourceMappingURL=BrowserFileLoggerDummy.js.map