Package io.zenoh

Object Zenoh

  • All Implemented Interfaces:

    
    public class Zenoh
    
                        
    • Constructor Detail

    • Method Detail

      • tryInitLogFromEnv

         final Unit tryInitLogFromEnv()

        Initializes the zenoh runtime logger, using rust environment settings. E.g.: RUST_LOG=info will enable logging at info level. Similarly, you can set the variable to error or debug.

        Note that if the environment variable is not set, then logging will not be enabled. See https://docs.rs/env_logger/latest/env_logger/index.html for accepted filter format.

      • initLogFromEnvOr

         final Unit initLogFromEnvOr(String fallbackFilter)

        Initializes the zenoh runtime logger, using rust environment settings or the provided fallback level. E.g.: RUST_LOG=info will enable logging at info level. Similarly, you can set the variable to error or debug.

        Note that if the environment variable is not set, then fallbackFilter will be used instead. See https://docs.rs/env_logger/latest/env_logger/index.html for accepted filter format.

        Parameters:
        fallbackFilter - : The fallback filter if the RUST_LOG environment variable is not set.