For development purposes it might come handy to enable logging and debug mode:
By doing this
MikroORM will start using
console.log() function to dump all queries:
It is also useful for debugging problems with entity discovery, as you will see information about every processed entity:
You can also provide your own logger via
There are multiple Logger Namespaces that you can specifically request, while omitting the rest.
Just specify array of them via the
Currently there are 4 namespaces –
If you provide
query-params then you must also provide
query in order for it to take effect.