Expand description
logging stuffs, inspired by databend
Structsยง
- Logging
Options - The logging options that used to initialize the logger.
- Slow
Query Options - The options of slow query.
- Tracing
Options
Enumsยง
- LogFormat
- Otlp
Export Protocol - The protocol of OTLP export.
- Slow
Queries Record Type
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ยง
Functionsยง
- build_
otlp_ ๐exporter - build_
slow_ ๐query_ logger - init_
default_ ut_ logging - Init tracing for unittest.
Write logs to file
unittest
. - init_
global_ logging