• Mayank Mittal's avatar
    Switches from `carb` to `omni.log` for logging (#1215) · 69df26b7
    Mayank Mittal authored
    # Description
    
    Earlier, we used [`Carbonite
    SDK`](https://docs.omniverse.nvidia.com/kit/docs/carbonite/latest/api/dir_carb_logging.html)
    to log directly. However, this has limited functionalities compared to
    [`omni.log`](https://docs.omniverse.nvidia.com/kit/docs/carbonite/latest/api/namespace_omni__log.html)
    in Omniverse. Using `omni.log`, you can fine-grain the channels and
    print levels better.
    
    Link to omni.log documentation:
    https://docs.omniverse.nvidia.com/kit/docs/carbonite/latest/docs/omni.log/Logging.html
    
    This MR migrates all `carb` references to the new API.
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    - Breaking change (fix or feature that would cause existing
    functionality to not work as expected)
    
    ## Screenshot
    
    Checking the performance:
    ```
    ./isaaclab.sh -p source/standalone/benchmarks/benchmark_load_robot.py --num_envs 2048 --robot g1 --headless
    ```
    
    **Before (carb logging)**
    [INFO]: App start time: 4676.57 ms
    [INFO]: Imports time: 2008.77 ms
    [INFO]: Scene creation time: 2966.36 ms
    [INFO]: Sim start time: 5782.76 ms
    [INFO]: Per step time: 15.80 ms
    
    **After (omni.log logging)**
    [INFO]: App start time: 4833.56 ms
    [INFO]: Imports time: 1983.67 ms
    [INFO]: Scene creation time: 2792.97 ms
    [INFO]: Sim start time: 5805.97 ms
    [INFO]: Per step time: 15.86 ms
    
    
    ## Checklist
    
    - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
    `./isaaclab.sh --format`
    - [x] I have made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [ ] I have added tests that prove my fix is effective or that my
    feature works
    - [ ] I have updated the changelog and the corresponding version in the
    extension's `config/extension.toml` file
    - [x] I have added my name to the `CONTRIBUTORS.md` or my name already
    exists there
    69df26b7
Name
Last commit
Last update
..
benchmarks Loading commit data...
demos Loading commit data...
environments Loading commit data...
tools Loading commit data...
tutorials Loading commit data...
workflows Loading commit data...