Skip to main content
Version: 3.69.0

Logging

Configures the logger, see the runtime documentation.

Query Logging​

Enable detailed query logging by setting the log level to trace. This is especially useful during development for monitoring the queries executed against the database:

[12:09:13.810] INFO (platformatic-db/9695): incoming request
[12:09:13.819] TRACE (platformatic-db/9695): query
query: {
"text": "SELECT \"id\", \"title\"\n FROM \"movies\"\nLIMIT ?"
}
[12:09:13.820] INFO (platformatic-db/9695): request completed
responseTime: 10.350167274475098
info

Note extensive logging, especially at the trace level, can impact performance and should be used judiciously in production environments.

Issues

If you run into a bug or have a suggestion for improvement, please raise an issue on GitHub.