Add env_logger

AfoHT
Jan 26, 2024, 10:32 PM
LRBLK2ZM34J5NEI7K43BKHTJABQBXZW7ERXJDXO2QD6V7OQOCBHQC

Dependencies

  • [2] F37PVGYN Add support for popping a plank
  • [3] NJC3HBR6 Initial attempt to not get too short planks at end of row
  • [4] 4YYL4VTY Introduce Cut
  • [5] HRZA4USG Add method swapping planks in a row
  • [*] ZJPL7VNQ Separate planks from main
  • [*] 5TH3AA46 10 mm extra space
  • [*] LXMNVVD2 Change to proper measurements
  • [*] SMYRM2CF Use the MaterialStorage
  • [*] NRQSXJVR Initial commit

Change contents

  • replacement in src/lib.rs at line 278
    [2.378][2.378:437]()
    println!("Removed cut at {}", cut.coordinate);
    [2.378]
    [2.437]
    log::info!("Removed cut at {}", cut.coordinate);
  • edit in src/bin/main.rs at line 3
    [7.3565]
    [9.0]
    use env_logger;
    use log;
  • edit in src/bin/main.rs at line 9
    [8.145]
    [10.199]
    env_logger::init();
  • replacement in src/bin/main.rs at line 128
    [3.256][3.256:296]()
    println!("Removing plank");
    [3.256]
    [3.296]
    log::info!("Removing plank ending at: {}", row.get_coverage());
  • edit in Cargo.toml at line 10
    [11.450]
    log = "0.4"
    env_logger = "0.11"