ionic-orm-2
Version:
Data-mapper ORM for Ionic WebSQL and SQLite
30 lines (29 loc) • 819 B
TypeScript
import { LoggerOptions } from "./LoggerOptions";
/**
* Performs logging of the events in TypeORM.
*/
export declare class Logger {
private options;
constructor(options: LoggerOptions);
/**
* Logs query and parameters used in it.
*/
logQuery(query: string, parameters?: any[]): void;
/**
* Logs query that failed.
*/
logFailedQuery(query: string, parameters?: any[]): void;
/**
* Logs failed query's error.
*/
logQueryError(error: any): void;
/**
* Logs events from the schema build process.
*/
logSchemaBuild(message: string): void;
/**
* Perform logging using given logger, or by default to the console.
* Log has its own level and message.
*/
log(level: "log" | "info" | "warn" | "error", message: any): void;
}