Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alibaba/zvec/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheLogLevel enum defines logging severity levels for controlling the verbosity of Zvec’s output. Levels are ordered from lowest to highest priority, with higher values indicating more severe conditions.
Enum Values
DEBUG
- Tracing internal function calls
- Inspecting intermediate data structures
- Performance profiling details
INFO
- Collection opened successfully
- Index built successfully
- Query completed
WARN / WARNING
WARNING is an alias for WARN to match Python’s built-in logging module convention.- Deprecated API usage
- Suboptimal configuration detected
- Resource approaching limits
ERROR
- Failed to insert a document
- Query execution failed
- Index corruption detected
FATAL
- Critical system resource unavailable
- Unrecoverable data corruption
- Fatal configuration errors
Usage
Setting Log Level
Configure the log level when initializing Zvec:Choosing the Right Level
Development
Use
DEBUG or INFO to see detailed operation logsProduction
Use
WARN or ERROR to reduce noise and focus on issuesLevel Filtering
Log messages are filtered based on the configured level:- Setting
LogLevel.WARNwill show WARN, ERROR, and FATAL messages - Setting
LogLevel.ERRORwill show only ERROR and FATAL messages - Setting
LogLevel.DEBUGwill show all messages
Examples
Debugging Performance Issues
Production Configuration
See Also
- LogType - Configure log output destination
- zvec.init() - Initialize Zvec with logging configuration
- Status - Error codes and status handling