diff --git a/pages/database-management/configuration.mdx b/pages/database-management/configuration.mdx index 6fe01b68d..b1746df05 100644 --- a/pages/database-management/configuration.mdx +++ b/pages/database-management/configuration.mdx @@ -522,6 +522,7 @@ This section contains the list of all other relevant flags used within Memgraph. | `--isolation-level=SNAPSHOT_ISOLATION` | Isolation level used for the transactions. Allowed values: SNAPSHOT_ISOLATION, READ_COMMITTED, READ_UNCOMMITTED. | `[string]` | | `--log-file=/var/log/memgraph/memgraph.log` | Path to where the log should be stored. If set to an empty string (`--log-file=`), no logs will be saved. | `[string]` | | `--log-level=WARNING` | Minimum log level. Allowed values: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL. | `[string]` | +| `--logger-type=sync` | Type of logger used by Memgraph. Allowed values: `sync`, `async`. When set to `async`, log messages are buffered and written in a background thread, reducing the performance impact of logging on query execution. | `[string]` | | `--memory-limit=0` | Total memory limit in MiB. Set to 0 to use the default values which are 100% of the physical memory if the swap is enabled and 90% of the physical memory otherwise. | `[uint64]` | | `--metrics-address` | Host for HTTP server for exposing metrics. | `[string]` | | `--metrics-port` | Port for HTTP server for exposing metrics. | `[uint64]` | diff --git a/pages/database-management/logs.mdx b/pages/database-management/logs.mdx index 1a1efed3b..64ce05e7c 100644 --- a/pages/database-management/logs.mdx +++ b/pages/database-management/logs.mdx @@ -19,6 +19,12 @@ configuration flag or [during runtime](/database-management/configuration#change-configuration-settings-during-runtime) using the `SET DATABASE SETTING "log.level" TO "TRACE";` +By default, Memgraph uses synchronous logging. To reduce the performance impact +of logging on query execution, you can enable asynchronous logging by setting the +[`--logger-type`](/database-management/configuration#other) configuration flag +to `async`. With asynchronous logging, log messages are buffered and written in a +background thread instead of blocking the executing thread. + The configuration set during runtime will be applied only for that session. You can check the log level by running `SHOW DATABASE SETTING "log.level";` query.