Module logging

Source
Expand description

logging stuffs, inspired by databend

Structsยง

LoggingOptions
The logging options that used to initialize the logger.
SlowQueryOptions
The options of slow query.
TracingOptions

Enumsยง

LogFormat
OtlpExportProtocol
The protocol of OTLP export.
SlowQueriesRecordType

Constantsยง

DEFAULT_LOGGING_DIR
The default logs directory.
DEFAULT_LOG_TARGETS ๐Ÿ”’
DEFAULT_OTLP_GRPC_ENDPOINT
The default endpoint when use gRPC exporter protocol.
DEFAULT_OTLP_HTTP_ENDPOINT
The default endpoint when use HTTP exporter protocol.

Staticsยง

GLOBAL_UT_LOG_GUARD ๐Ÿ”’
RELOAD_HANDLE

Functionsยง

build_otlp_exporter ๐Ÿ”’
build_slow_query_logger ๐Ÿ”’
init_default_ut_logging
Init tracing for unittest. Write logs to file unittest.
init_global_logging