pub fn set_logger(
level: LogLevel,
listener: Box<dyn LogListener>,
) -> Result<(), Error>Expand description
Set up SDK logging. Call once before any other SDK function.
The listener receives all log messages from the SDK and the
underlying Greenlight client library. Call once, as early as
possible, so early logs are captured. Returns an error if a logger
has already been installed in this process. To change the filter
after installation, use set_log_level.