RAPIDS Logger

0.2.3 · active · verified Thu Apr 16

rapids-logger is a core logging framework within the RAPIDS ecosystem, built around the high-performance C++ `spdlog` library. Its primary goal is to provide project-specific loggers easily, ensuring that custom logging implementations do not leak `spdlog` or `fmt` symbols, thus allowing safe coexistence of different RAPIDS projects in the same environment. While it has Python bindings for packaging, its direct Python API for general-purpose logging is not extensively documented; it primarily serves as the underlying logging mechanism for other RAPIDS Python libraries like `cuML`. The current version is 0.2.3, and releases align with the broader RAPIDS CalVer (YY.MM.PP) versioning scheme for patch releases.

Common errors

Warnings

Install

Imports

Quickstart

Due to `rapids-logger` being predominantly a C++ framework, direct Python usage for general logging is not commonly documented. Python users typically configure logging through environment variables or specific API calls provided by higher-level RAPIDS Python libraries (e.g., `cuml.accel.install(log_level='debug')`). The provided quickstart demonstrates checking the installed version and notes the indirect usage pattern.

# rapids-logger is primarily a C++ library and its direct Python API for general-purpose logging
# is not a primary documented feature. Python users typically interact with logging
# through other RAPIDS Python libraries (e.g., cuML) that use rapids-logger internally.
#
# Example of configuring logging in cuML (which uses rapids-logger implicitly):
# import cuml
# cuml.accel.install(log_level='debug')
#
# To see if rapids-logger's C++ components are correctly installed and available via Python bindings:
import rapids_logger
print(f"rapids_logger version: {rapids_logger.__version__}")
# Further direct interaction would depend on specific, often undocumented, Python bindings.

view raw JSON →