Параметры логирования#
Примечание
Ниже приведена оригинальная документация Trino. Скоро мы ее переведем на русский язык и дополним полезными примерами.
log.path
#
Type: string
The path to the log file used by Trino. The path is relative to the data
directory, configured to var/log/server.log
by the launcher script as
detailed in Running Trino.
log.max-history
#
Type: integer
Default value:
30
The maximum number of general application log files to use, before log rotation replaces old content.
log.max-size
#
Type: data size
Default value:
100MB
The maximum file size for the general application log file.
http-server.log.enabled
#
Type: boolean
Default value:
true
Flag to enable or disable logging for the HTTP server.
http-server.log.compression.enabled
#
Type: boolean
Default value:
true
Flag to enable or disable compression of the log files of the HTTP server.
http-server.log.path
#
Type: string
Default value:
var/log/http-request.log
The path to the log file used by the HTTP server. The path is relative to the data directory, configured by the launcher script as detailed in Running Trino.
http-server.log.max-history
#
Type: integer
Default value:
15
The maximum number of log files for the HTTP server to use, before log rotation replaces old content.
http-server.log.max-size
#
Type: data size
Default value:
unlimited
The maximum file size for the log file of the HTTP server. Defaults to
unlimited
, setting a data size value limits the file size
to that value.