logging: truein your connection options:
query- logs all queries.
error- logs all failed queries and errors.
schema- logs the schema build process.
warn- logs internal orm warnings.
info- logs internal orm informative messages.
log- logs internal orm log messages.
maxQueryExecutionTimein connection options:
simple-console- this is a simple console logger which is exactly the same as the advanced logger, but it does not use any color highlighting. This logger can be used if you have problems / or don't like colorized logs.
file- this logger writes all logs into
ormlogs.login the root folder of your project (near
ormconfigfile, then you can use it and override it in the following way:
QueryRunnerwhen it's available. It's helpful if you want to log additional data. Also, via query runner, you can get access to additional data passed during persist/remove. For example: